Hello folks,
maybe you can help me again.
I'm impressed by the further development of the software for the desktop app, but I think it's a shame that you only ever use one extension can, e.g. not ultrasonic and touch sensor together.
That's why I tried to create a program with Mind+ Arduino Uno Blocks (Nybble was in standard mode, but that will be overwritten anyway, right?).
create that addresses the ultrasonic sensor. In the hope of being able to use other extensions (touch or gesture sensor, for example) at the same time (I haven't bought any of it yet, I'd like to know if it's even possible).
It works, the distance is displayed in the serial monitor.
Only I can't get Nybble to move! I want him to run around, avoid obstacles, etc., using two or more if possible Use extension sensors at the same time.
Or is that generally not possible?
I absolutely cannot cope with the Arduino IDE and unfortunately not with the C++Api (opencat_serial/opencat_serial.hpp) either, so it would be nice if if someone could tell me how to do this via Mind+.
Thank you in advance.
Greetings,
briquila
Hi Briquila,
You may want an MUX (multiplexor) module to extend your I/O channels. From there its simple to access many sensors in a fast loop, but Mind+ alone is not enough, start to cut and paste code any leading GPT gives you, and when it does not work the first time go back for rewrites until it does. It's a fast way to learn anything you want with Arduino or Pi
This video covers an Arduino MUX-
Arduino Multiplexor - MUX INPUTS & OUTPUTS - ANALOG and PWM (youtube.com)
The Mind+ program and the program running on the mainboard are single-threaded. You can try to use different sensors at the same time, use the Analog Read or Digital Read blocks in the Mind+ program, and write the Mind+ program according to your logic, but the effect may not be ideal.
If you use the Arduino UNO blocks, your program will upload to the NyBoard and overwrite the OpenCat main function firmware, so Nybble can't move.