Submitted by rupertb@cix.co.uk on Tue, 09/13/2016 - 20:08
I've just got my Zeroborg up and running with the example scripts and everything seems to be fine - are there any plans to link it to the Cayenne IoT framework that has been in the press recently or can it be done via calling out to python scripts ?
piborg
Wed, 09/14/2016 - 12:14
Permalink
Cayenne IoT
I do not really know much about how the framework behaves under the covers.
Anything which is capable of send I2C messages will be able to talk with the ZeroBorg.
This could be done with Python scripts or any programming language which can talk to the I2C bus.
We have a large amount of development going on at the moment with the first Formula Pi series soon to start and some new robots on the way.
Because of this we do not really have the time to do development for other frameworks sadly.
We can provide help to someone who is willing to give it a go though ^_^
rupertb@cix.co.uk
Wed, 09/14/2016 - 17:23
Permalink
Cayenne IOT Interfacing with PiBorg
Do you have a document on the messages that are sent over I2C for the example program with the sliders I'm really only interested in basic motor control functions
rupertb@cix.co.uk
Wed, 09/14/2016 - 17:23
Permalink
Cayenne IOT Interfacing with PiBorg
Do you have a document on the messages that are sent over I2C for the example program with the sliders I'm really only interested in basic motor control functions
piborg
Thu, 09/15/2016 - 10:59
Permalink
ZeroBorg I2C commands
We do not have any simple documentation for the I2C commands.
What we do have is a fairly simple example implementation in
ZeroBorg.py
The functions for controlling the individual motor outputs are:
SetMotor1
,SetMotor2
,SetMotor3
, andSetMotor4
.The I2C address of the ZeroBorg by default is
64
(0x40
) by default.The I2C messages sent by the functions above all share the same two byte pattern:
The power level is between
0
for 0% (off) and255
for 100% (full speed).The command codes are:
For example the message:
6
,25
will set motor 2 to move forwards with about 10% output.