MrYsLab / s3-extend

Control an Arduino Uno, Circuit Playground Express, Raspberry Pi Pico, ESP-8266, ESP-32, Picoboard, Robohat MM1, or Rasberry Pi From Scratch 3
GNU Affero General Public License v3.0
27 stars 13 forks source link

S3-extend with ConfigurableFirmata #23

Closed ruebox closed 3 years ago

ruebox commented 3 years ago

@MrYsLab Thanks a lot for the great framework for connecting Scratch3 with Arduino and others. I have Microduino running at home and try to integrate this also to your s3-extend framework. Due to your elaborate documentation, I was able to add a scratch extension ... thanks.

However, I would need to extend the FirmataExpress with other devices. I am an experience C++ programmer and like the code structure and flexibility of ConfigureableFirmata to easily add features ...

Could you give me a hint how to run s3-extend with ConfigurableFirmata as

python3 s3a.py 
backplane started
Websocket Gateway started
Arduino Gateway started.
Please wait 0 seconds for Arduino to initialize...
Arduino is initialized.
To exit this program, press Control-c
Arduino Gateway exited. Is your Arduino plugged in?

directly fails without pressing Control-C.

Thanks for this. Best, Ruebox

MrYsLab commented 3 years ago

Hi Ruebox, You will need to implement addtional SYSEX commands for the RU_THERE/I_AM_HERE challenge and reply. You may already be aware of this, but let me mention the following in case you are not. The extension not only uses FirmataExpress, but also pymata-express. The Ardino link speed is set to 115200.

To get an understanding of what pymata-express needs to proceed is essentially:

  1. Firmata must be able to return its firmware version when queried.
  2. Firmata must be able to return its analog map.
  3. And Firmata must be able to participate in the pymate-express's auto-discovery protocol by returning an Arduino instance ID.

Just to let you know, I have developed a much more flexible and simpler alternative to Firmata called Telemetrix. I will be porting the extensions over to Telemetrix in the future, and at that time will no longer support the Firmata extensions.

I am going to close this issue, but if you have any additional questions, you may post them here and I will see them.