0

Problem in transmitting values of GY-521 and flex sensors us
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Problem in transmitting values of GY-521 and flex sensors us

by theninoadrianband on Sat Feb 16, 2019 2:57 am

We are currently creating a project, and what we wanted to accomplish is a sign language translating gloves. The hardware-software connection would essentially be comprised of two arduino-based gloves equipped with sensors and a python-based computer program which will harvest the data realtime from the gloves. On the hardware end, we decided that it would be best to use one flex sensor for each finger to detect finger flexes, which would total five Flex Sensors, and connect those to the Arduino Nano (which will be strapped in a wristband), and also attach one Accelerometer per hand to accomodate the gestures that require hand movement. The accelerometer is a GY-521 MPU-6050 breakout board. An NRF2L01 transceiver will then wireleslly transmit the garnered data realtime, hence the glove acting as a transmitter. The receiver side is comprised of an Arduino Nano with a NRF2L01 connected to it as well.
Components:
- Arduino Nano
- Flex Sensor
- GY-521 MPU-6050 breakout board
- NRF24L01 Transceiver

Now, about the accelerometer. We need to transmit the X Y Z values of the Accelerometer module to the serial monitor. We also need to transmit the values of the 5 flex sensors to the serial monitor.
Currently, we have been able to transmit the values of 5 flex sensors and the values of X and Y values of the acceleromter to the serial monitor. However, inconsistencies arise when we include the Z axis of the accelerometer into the code. As you will see in the jpg file, the serial plotter window displays a wild fluctuation affecting all variables when the Z axis is included. What could be the cause of this?
We tried wiring the arduino directly to the pc instead of using the NRF24L01 and the data is transmitted smoothly. So we suspect the fluctuations are caused by the transceiver.
Any help will be very much appreciated. Thank you very much.
here is the link of the ino files: https://drive.google.com/open?id=1HIZo- ... BprIIVZnLF
Attachments
SIGNLANGUAGEGLOVES.zip
(678.75 KiB) Downloaded 11 times

theninoadrianband
 
Posts: 1
Joined: Sat Feb 16, 2019 12:53 am

Please be positive and constructive with your questions and comments.