rotary encoder and flex

how make rotary encoder and flex move servos by xbee and xbee shield

hossamm92:
how make rotary encoder and flex move servos by xbee and xbee shield

  1. Get a rotary encoder.

  2. Connect it to the Arduino.

  3. Write some code to read the encoder.

  4. Get some flex sensors.

  5. Connect them to the Arduino.

  6. Write some code to read the sensors.

  7. Get 2 XBees and the appropriate number of shields.

  8. Connect them to the Arduino(s).

  9. Configure the XBees correctly.

  10. Write some code to send the data collected to the pins that the XBee reads as serial input.

  11. Connect some servo control wires and grounds to the other Arduino.

  12. Connect the power wire and ground to a suitable battery.

  13. Write some code to see if there is data available from the XBee. If there is, read it and store it.

  14. Write some code to check for the end of packet marker. When it arrives, parse the data.

  15. Write some code to move the appropriate servo to the appropriate position.

See, not at all difficult when you break the project down into manageable steps.

Which step are you stuck on?