jmoenig / Snap

a visual programming language inspired by Scratch
http://snap.berkeley.edu
GNU Affero General Public License v3.0
1.52k stars 748 forks source link

Sphero Bolt #2391

Open jcaldw737 opened 5 years ago

jcaldw737 commented 5 years ago

Any one know if SNAP connects to Sphero Bolt?

brianharvey commented 5 years ago

It does indeed. https://snap.berkeley.edu has a list of robots with interface software.

jcaldw737 commented 5 years ago

Thank you very much!

jcaldw737 commented 5 years ago

I followed the link below from the snap page to get the process for using SNAP to command a Sphero Bolt robot. But I have not succeeded. Has anyone had experience with using SNAP and Bolt? Thank you in advance for whatever someone can do to help me!

https://docs.google.com/document/d/11wR53OTnofRtTtxZCmxnCUjIlFQjnGewM21A0vmjtFw/edit?usp=sharing

jguille2 commented 5 years ago

Hi @jcaldw737 , I have not any Sphero Bolt to test it... but I see it is using a python middleware (an http server) listening to Snap! blocks.

Then, I guess your only problem may be the http protocol. Current official Snap! is running over "https" and so, it can't use "http" (non secure) connections.

So, test it on http://extensions.snap.berkeley.edu/snapsource/snap.html#present:Username=techno&ProjectName=Sphero%20circle (this is the same url, changing https://snap.berkeley... by http://extensions.snap.berkeley...)

If the test is not good, before testing Snap!, test http://localhost:7575/get_sphero_name on your browser. If this request has not answer, the problem is on the Sphero side (python module installation, connecting that robot...)

Joan

brianharvey commented 5 years ago

I'm having a problem with my new Bolt too (@jcaldw737 did you get yours in the Kickstarter?) but mine is earlier in the process. When I say "python" it runs 2.7 as it should, but when I do the pip install it goes in the 3.6 library, and I can't copy into the 2.7 library for some reason, even as root. Any ideas?