I want to communicate between 2 arduinos using 2 HC-12 Wireless Transceivers. On one Arduino (the transmitter) I have a grove shield (https://www.seeedstudio.com/Base-Shield-V2-p-1378.html) and I’ll have a gas sensor (https://www.seeedstudio.com/Grove-Multichannel-Gas-Sensor-p-2502.html?gclid=Cj0KEQjwhMjKBRDjxb31j-aesI4BEiQA7ivN-MINw1dnPgcH6mUdVk-DnGHLwquxrnOymaQUEnVaE0QaAsGW8P8HAQ) connected via the IC2.
On the second arduino (receiver) I’m using an adafruit neopixel ring with 12 LEDs (NeoPixel Ring - 12 x 5050 RGB LED with Integrated Drivers : ID 1643 : $7.50 : Adafruit Industries, Unique & fun DIY electronics and kits) and i’d like it to change colour depending on the gas sensor value received.
i’ve attached the code for both the receiver and transmitter, which I got most of it from reading instructable articles online, but i can’t seem to get it to work.
any help would be greatly appreciated!
Transmitter Code is ‘Send_Gas_Data’
Receiver Code is ‘Receive_Gas_Data’
Send_Gas_Data.ino (582 Bytes)
Receive_Gas_Data.ino (1.59 KB)