- Wed Jan 28, 2015 3:28 pm
#179194
Hi! I am a super newbie here...
I've followed this excellent tutorial - https://learn.sparkfun.com/tutorials/xb ... e-overview - and have had gotten it all to work.
I would now like to take it a step further, but am not sure how. Here is what I would like to do:
Connect Velostat to analog pin DIO0 on the XBee which is connected to the computer, and have that activate a vibrating motor which is connected to pin 13 on the Arduino.
I'm able to type in dd1/dd0 in XCTU to get the vibrating motor to turn on and off (like with the LED in the tutorial), but the part I don't know how to do is hook up the velostat, make the XBee read the compression, and then activate the vibrating motor accordingly.
I've found several tutorials about how to hook up potentiometers, etc, but not using the same Arduino code as in the tutorial listed above, and none with force resistors. And so, I am totally lost!
Any advice?
Thanks!
I've followed this excellent tutorial - https://learn.sparkfun.com/tutorials/xb ... e-overview - and have had gotten it all to work.
I would now like to take it a step further, but am not sure how. Here is what I would like to do:
Connect Velostat to analog pin DIO0 on the XBee which is connected to the computer, and have that activate a vibrating motor which is connected to pin 13 on the Arduino.
I'm able to type in dd1/dd0 in XCTU to get the vibrating motor to turn on and off (like with the LED in the tutorial), but the part I don't know how to do is hook up the velostat, make the XBee read the compression, and then activate the vibrating motor accordingly.
I've found several tutorials about how to hook up potentiometers, etc, but not using the same Arduino code as in the tutorial listed above, and none with force resistors. And so, I am totally lost!
Any advice?
Thanks!