New Project - Gameshow Buzzers (Host Lockout, Buzz-in Order, Lighted)


greetings!

i working on first real project, , need guidance.

the first thing i'm trying figure out is:

i have arduino , breadboard mounted in x-box case rj 45 ports around sides can plug devices in. i'm hoping allow arduino box repurposed using different peripherals plugged rj ports. i'd detect presence can keep loop speedy telling instructions skip player index has pstatus==0.

i wondering how can detect whether peripheral plugged in. imagine sort of:
code: [select]

for (int i=0; int<peripheralcount; i++)
{
  digitalwrite (testpower[i],high);  //testpower , testpin led circuit button?
  if (digitalread(testpin[i])==high)
  {
    pstatus[i]=1;
  }
  else
  {
    pstatus[i]=0;
  }
  digitalwrite (testpower[i],low);
}

hi anthingy , welcome.

i see you're getting at. strikes me should not need waste pins provide test power each rj45 port. imagine each port have permanently wired +v , gnd power peripherals anyway?  in case test pin needed. peripheral short pin gnd when plugged in. arduino test setting test pin port input_pullup , reading pin digitalread. high result mean no peripheral.

paul


Arduino Forum > Using Arduino > Project Guidance > New Project - Gameshow Buzzers (Host Lockout, Buzz-in Order, Lighted)


arduino

Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support