igbopie / spherov2.js

Unofficial Sphero V2 api for new toys like Sphero Mini, Lighting McQueen
MIT License
87 stars 36 forks source link

BB9E Support #12

Closed igbopie closed 5 years ago

igbopie commented 6 years ago

I need bluetooth prefix for now.

DanielSSilva commented 6 years ago

In my case it is GB-56F2

igbopie commented 6 years ago

Awesome, I will work on that tonight (I am located US west coast). I will have some kind of demo for you tomorrow. Do you have a steel series nimbus or just an xbox controller?

DanielSSilva commented 6 years ago

My timezone is GMT+1. I have an Xbox controller. I've been testing with raspberry pi 3. Hopefully it will work

igbopie commented 6 years ago

Just pushed a commit. Checkout the repo and try yarn patrol-gb. Hopefully you should see your bb9e drawing a square :) (it will try to detect your bb9e in 5s, so, you may try again if it does not happen).

I hadn't time to get 360 controller working since it is not very well supported on my mac (there was some drivers but it keeps crashing). I have one example with sphero mini and steelseries nimbus.

DanielSSilva commented 6 years ago

I don't know if today I get any change of trying it out, but as soon as I can I will reach out to you. I was trying to find a way for us to share contacts, without it getting scrapped by bots ahaha

dimorphic commented 6 years ago

Heya! Jumping in with some info:

Prefix: GB-F553

Noble scan logs on my nearby BB8 & BB9-E devices:

GMT+2 & Xbox controller here

🍻

DanielSSilva commented 6 years ago

Hey! Tomorrow I'll begin to work on this as well. Will start by seeing what I can detect with the info you've provided. Hopefully will not be too hard ( I'm trying with a raspberry Pi 3, which sometimes has some "problems" with noble).

Additional information: Hardware: Raspberry Pi 3 Software: Latest Raspbian at time of this writing (March-2018) Bluetooth: Raspberry's built in bluetooth.

Although we all have different timezones, maybe It would be good if we setup a discord/slack channel (I do prefer discord because it has voice). At least for me it would be easier to understand both your projects and ask questions (not totally familiar with JS, even less with TS). What do you guys think?

igbopie commented 6 years ago

https://join.slack.com/t/spherov2/shared_invite/enQtMzQzNjAxMzkyNjc5LWYyZGIzN2Y4ZWFiMjI3OGI0NDRlN2NkMTgwMDNmM2JmODk2ZjNlYmQwNTA2NmJkMGVkYzEyZGI2NDEzZTU3Njk

Done!!

I don’t have a BB9E haha

DanielSSilva commented 6 years ago

Quick update: Your code works :D

igbopie commented 6 years ago

Awesome! Now what are the next steps :) what you guys what to do with it?

DanielSSilva commented 6 years ago

First of all I would like to familiarize with the project and know where to start and do simple testing. Maybe we can develop a stable library that can be used by anyone and later do a simple website with controllers. Integration with Xbox would also be awesome

JM-F commented 6 years ago

Hi Ignacio and others... First of all THANK YOU for this. This is incredibly useful. I have been using it to add the Sphero-mini to our software (http://amygdala.psychdept.arizona.edu/data/JNM2017data/JNM2017Code.html). I managed to control the roll, colors, stabilization and read the battery (using the 180F/2A19 service). Having trouble reading messages back from Sphero. Before I go and dive into your code some more, could you confirm that you made it work? Do you have an example I could look at? Thanks! ps: new to github... not sure if I should create a new thread for this...

igbopie commented 6 years ago

Hi, yes, this is working for the Sphero mini. I don't have a BB9E so I believe what Daniel said. This lib is able to read sensor too, but I haven't been able to decode the data that comes from it. Since there is no official Sphero docs it is all about guessing. I can publish the latest version to NPM. So you can import it as a regular package.

Also, there is folder inside src called examples, you can take a look into that.

igbopie commented 5 years ago

Look like we BB9E is working :)