Or can somebody tell me how i can turn on the "random" mode in Arduino? It is inside the libraries (randomMind.h). How would an arduino sketch look, that uses this?
The Arduino code coordinates all the motions and UI of the robot. So, there's no simple sketch to talk to the bot. With a simple sketch, the "mind" of the robot doesn't exist.
There are many ways to program the robot.
You can refer to createTask() in src/taskQueue.h and the example of doubleTouch.h to add behaviors in the Arduino code. It can be very hard to learn.
You can study the serial protocol then use other interfaces, such as Python and the mobile app to send commands to the robot. You just need to understand the formats of string commands.
The mainboard of Bittle-NyBoard uses Atmel ATMega328P as the main controller. We need to upload the sketch(OpenCat project) to the NyBoard. After that, you can send some serial commands to the robot via serial port.
Thanks a lot! What i actually want to do is program some sequential behavior that the robot is executing on his own, not attached to a cable. Very much what happens if you turn on the "random" mode, just with a little more control over the actual sequence.
Or can somebody tell me how i can turn on the "random" mode in Arduino? It is inside the libraries (randomMind.h). How would an arduino sketch look, that uses this?
Hi,
The Arduino code coordinates all the motions and UI of the robot. So, there's no simple sketch to talk to the bot. With a simple sketch, the "mind" of the robot doesn't exist.
There are many ways to program the robot.
You can refer to createTask() in src/taskQueue.h and the example of doubleTouch.h to add behaviors in the Arduino code. It can be very hard to learn.
You can study the serial protocol then use other interfaces, such as Python and the mobile app to send commands to the robot. You just need to understand the formats of string commands.
The mainboard of Bittle-NyBoard uses Atmel ATMega328P as the main controller. We need to upload the sketch(OpenCat project) to the NyBoard. After that, you can send some serial commands to the robot via serial port.