![]() ![]() The wire from each flex sensor is connected to a separate analog input pin via the voltage divider. The +5 V from the Arduino goes to the main positive voltage wire. The main GND (ground) wire connected to all individual GND wires from the sensors, gets connected to the GND of the Arduino.Flex sensors are variable resistors, so I recommend using a voltage divider. The flex sensors require a circuit in order for them to be compatible with Arduino. MISO connect to the digital 12 pin of the Arduino.MOSI connect to the digital 11 pin of the Arduino.SCK connect to the digital 13 pin of the Arduino.CSN connect to the digital 10 pin of the Arduino.CE connect to the digital 9 pin of the Arduino.Servo-5 connect to the analog 05 (A5) of the Arduino.Servo-4 connect to the analog 04 (A4) of the Arduino.Servo-3 connect to the analog 03 (A3) of the Arduino.Servo-2 connect to the analog 02 (A2) of the Arduino.Servo-1 connect to the analog 01 (A1) of the Arduino.If you used different pins than pins shown in below, change them in codes.If you encounter the these problems: vibration in servo motors, servo motors not working, communication breakdown and in similar situations, supply your Arduino board with external power (like USB).Otherwise, communication may be broken due to insufficient current. I recommend using the power adapter for the nRF24L01+ module. ![]() ![]() All the GNDs in a circuit need to be connected for it to work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |