C2 is a 2-pin protocol. Any arduino should work to implement the protocol via GPIO. Just need to make sure that the correct pins are mapped for your Arduino. Check the firmware file Arduino Mega or firmware file Arduino Uno and change the pins to map to your device if needed. Currently, it is:
- for Arduino Mega and maps C2D and C2CK to digital pins 2 and 3, respectively.
- for Arduino Uno and maps C2D and C2CK to digital pins 5 and 6, respectively.
Program the firmware to the arduino and connect C2D, C2CK, and GND to your target device.
You need to have Python installed. Then, install some required python modules.
Version executable Windows standalone flash27_EXE.zip)
pip install -r requirements.txt
Programming one target.
python flash.py <serial-port> <firmware.hex>
Example for Linux:
flash27.py /dev/ttyACM0 RF_Brige.hex
sudo flash27.py /dev/ttyACM0 RF_Brige.hex
Example for Windows:
python flash27.py COM8 RF_Bridge.hex
Select a serial speed
python SeepdFlash27.py Com8 1000000 RF_Bridge.hex
Unzip the ZIP archive flash27_EXE.zip.
flash27.exe com8 f:\test\RF_Bridge.hex
- Some modules need sudo on some systems
Changing the communication speed
Edit the following lines: In the Python program modify the following line to switch to a speed of 115200baud / sec:
self.ser = serial.Serial (com, 115200, timeout = 1)
In the program of your Arduino: