jguille2 / SA5

Scratch/Snap and Arduino Synchronized
GNU General Public License v3.0
10 stars 3 forks source link

Firmata/Spark v. SA5 for Snap4Arduino #3

Open mprogers opened 7 years ago

mprogers commented 7 years ago

Hello,

I've been trying to get a Particle Photon (particle.io) to work with Snap4Arduino. I was able to do so using Firmata/Spark, but I've noticed that your library has a lot more blocks. Do you know (I'm really, really out of my depth) how I could get your blocks to work with the Photon? Right now, I just imported the blocks (.xml), but get an error saying please upload SAFirmata2.ino a higher version

I'd like to be able to use the underlying Photon's capabilities (publish and subscribe, invoking Particle functions and accessing Particle variables, etc.)

Thanks for any assistance.

Michael

jguille2 commented 7 years ago

Hi Michael (@mprogers) I didn't know Particle project.

To play with SA5 blocks, you must upload SA5Firmata2.ino firmware to the board. It is made for Arduino.

Are Arduino Sketches compatibles with Particle IDE? I don't know if the StandardFirmata.ino of Firmata/Spark is the same than Firmata/Arduino. And SA5Firmata uses some Arduino libraries (IR, Nunchuck...) I don't know if you can load Arduino libraries into Particle IDE.

What's the way?

Joan

mprogers commented 7 years ago

On Mar 22, 2017, at 5:42 PM, Joan Guillén i Pelegay notifications@github.com wrote: I didn't know Particle project.

It's pretty cool. Their main product is the Photon, based on Arduino, but with lots of cloud functionality (you can publish events, set up webhooks, create functions that can be invoked over the web, etc.). To play with SA5 blocks, you must upload SA5Firmata2.ino firmware to the board. It is made for Arduino.

Are Arduino Sketches compatibles with Particle IDE?

Yes, if it runs on an Arduino it should run on a Photon/

I don't know if the StandardFirmata.ino of Firmata/Spark is the same than Firmata/Arduino. And SA5Firmata uses some Arduino libraries (IR, Nunchuck...) I don't know if you can load Arduino libraries into Particle IDE.

You can. What's the way?

First, try to upload SA5Firmata2.ino with their Arduino libraries. If you can do it, that's all.

OK, I'll give this a try tomorrow and let you know what happens.

If the upload is not possible, I would need more info about this Firmata-Spark and the Particle IDE. I've seen the Spark StandardFirmata.ino and it seems normal Arduino code. So it's easy for me to add extra code to implement more features (maybe not all). If you have this info and you want to make tests, I will try to find time to make these additions.

Thank you for the offer! I really don't know much about the Firmata-Spark, other than they made the libraries available in the Web IDE for the Photon, I uploaded their .ino file to my Photon, and then I could control it using Spark4Arduino.

As I said, I'll look at this again tomorrow and if I'm still stuck, drop you a line -- I really appreciate your response!

Michael

jguille2 commented 7 years ago

Hi @mprogers , Is this issue fixed? Are you running Photon by SA5Firmata?