This post is from a suggested group
Anyone tried controlling Bittle with Arduino Mega instead of ESP8266?
Hi everyone,
I’m trying to control Bittle using the sendCMD function. Originally this was done with the test8266Master example on an ESP8266, but since I don’t have an ESP8266 right now, I replaced it with an Arduino Mega 2560.
My idea is to connect both the MU camera and Bittle to the Mega. The Mega reads data from the camera, makes decisions, and then sends commands to Bittle. I’ve confirmed that the communication between the Mega and the MU camera works fine, and from the Mega side it looks like commands are being sent continuously.
However, Bittle doesn’t respond at all and doesn’t perform any actions. I’m not sure if replacing the ESP8266 with an Arduino Mega could cause any logical or communication issues, or if there’s something specific about how sendCMD needs to be sent (UART, baud rate, command format, timing, etc.) that I might be missing.
Has anyone…



You can connect three pins of the Mega 2560 to the serial communication pins on the NyBoard, as shown in the image above.
The code in test8266Master does not need to be modified, but the development board settings need to be changed, as shown in the image below:
Then upload the sketch test8266Master.ino to the Mega 2560.