Hi
I am trying to connect various sensors to the IO Expansion shield mounted ontop of the Arduino break-out for Edison.
I am trying to connect the following sensors/components:
1. An I2C 20x4 LCD
2. HC-SR04 Ultrasonic
3. DFRobot Temperature and Humidity sesor
4. Joystick module ( analogue thumbstick )
I have connected them as follow to the IO Expansion board:
1. LCD connected to the I2C connectors on IO Expansion board, and I got this working; ie, I can actually display text to the LCD display.
2. Ultrasonic sensor: GND,VCC and pins 7 & 8
3. Temperature & Humidity sensor: GND, VCC and pin 4 (tried 3 as well)
4. Analogue stick: GND, VCC and pins 13, 12 & 11 for X, Y and Button respectively.
I am not doing anything with the analogue joystick in my code yet, other than registering the pins for input.
What I am getting currently is only output to the LCD screen, but my temp and echo sensors does not "return" anything.
Any suggestions/help?
PS - if anyone can also add suggestions as to reading from the analogue sticks so I can switch display modes; eg, if I press stick in X direction, I only show temp and humidity, Y direction = distance from echo sensor?
Thanks in advance for any assistance.