author

zachthebassman

Inbox View Profile
4Comments

Tell us about yourself!

  • Nevermind. I did some looking around and found that the month you posted the youtube video (Early January 2014) the current version of the Arduino IDE was 1.0.5

    Hey Zippy, it's me again. I was wondering, what version of the arduino IDE were you using when you built this project?

    View Instructable »
  • Hi again Zippy,So I've been doing some more testing and it seems I'm closing in on the problem I described above. I added in the following code to the main loop to help with debugging: {{{void loop() { currentMillis = millis(); if(currentMillis - prevMillis >= 1000){ Serial.print("left 0: "); Serial.print(analogRead(A0)); Serial.println(); Serial.print("right 1: "); Serial.print(analogRead(A1)); Serial.println(); Serial.print("center 2: "); Serial.print(analogRead(A2)); Serial.println(); Serial.print("bottom 3: "); Serial.print(analogRead(A3)); Serial.println(); Serial.println(); prevMillis = currentMillis; } (*games[current_game].loop_fun)();}}}}Before running this debugging I verified that the pads …

    see more »

    Hi again Zippy,So I've been doing some more testing and it seems I'm closing in on the problem I described above. I added in the following code to the main loop to help with debugging: {{{void loop() { currentMillis = millis(); if(currentMillis - prevMillis >= 1000){ Serial.print("left 0: "); Serial.print(analogRead(A0)); Serial.println(); Serial.print("right 1: "); Serial.print(analogRead(A1)); Serial.println(); Serial.print("center 2: "); Serial.print(analogRead(A2)); Serial.println(); Serial.print("bottom 3: "); Serial.print(analogRead(A3)); Serial.println(); Serial.println(); prevMillis = currentMillis; } (*games[current_game].loop_fun)();}}}}Before running this debugging I verified that the pads I was testing were working properly with a simple Serial.println(analogRead()) script. Anyway, the results in the serial monitor were pretty strange when I included the above code in DasBlinkenBonken. This is what it looked like in the serial monitor: {{{left 0: 1023right 1: 1023center 2: 1023bottom 3: 1023left 0: 108right 1: 452center 2: 588bottom 3: 746left 0: 58right 1: 15center 2: 80bottom 3: 126left 0: 0right 1: 0center 2: 21bottom 3: 29left 0: 0right 1: 0center 2: 0bottom 3: 0left 0: 418right 1: 317center 2: 184bottom 3: 43left 0: 1008right 1: 1023center 2: 1011bottom 3: 970}}}So pretty strange. It fluctuates repeatedly and regularly between 0 and 1023. It also sometimes gets held up between reports. The serial communication reports are supposed to be once a second, but it's sometimes way longer than that. While I was testing, I only had the velostat pads plugged into the arduino. I was also using a dedicated 6vDC power supply for the velostat pads.I also conducted tests using the 5v pin on the arduino, and received more strange results. {{{left 0: 6right 1: 153center 2: 386bottom 3: 174left 0: 6right 1: 153center 2: 391bottom 3: 166left 0: 6right 1: 152center 2: 393bottom 3: 170left 0: 6right 1: 150center 2: 391bottom 3: 167left 0: 6right 1: 151center 2: 395bottom 3: 165}}}As you can see a lot of fluctuations. Some pads, like the left pad, will respond consistently to input. But the values when it's hit aren't much outside of it's regular fluctuations (4-5 flux; 5-6 hit).Any chance you could shed some light on these difficulties? The fluctuations, or the strange time delays over serial communication? Help would really be appreciated :)Anyway, sorry for the long message. And thanks for your time!-Zach

    View Instructable »