Renard protocol... ...
 
Notifications
Clear all

Renard protocol... what does it look like?

11 Posts
7 Users
0 Reactions
9,941 Views
Posts: 3
Topic starter
(@john-in-wi)
Active Member
Joined: 15 years ago
[#18175]

I've been searching these forums and I'm sure it's here somewhere, ( I can't find it) ... exactly what does a renard packet look like?

I'm setting up my own pic software and need to know what data is being sent with each "tick" of vixen. I can't use the pre- programmed .asm files posted here. I'm using a 40 pin 18F pic and need to write my own code.I prefer C, BASIC or JAL to assembly. Much more readable. I suspect most will be non pwm outputs, but that's OK.... I think there are something like 36 outputs on this cheap microcontroller. I'm using the internal oscillator, but these newer chips internal oscillator are really accurate & fast (16-64 MHz +-1%) and have used moderately fast serial with success in the past.

Does the pad byte get sent every "tick"? The sync byte? How is the packet information formatted? How and in what order are the channels and levels identified?

Long story, but in a nutshell, I'm teaching a robotics class for kids that the Vixen sequencer will work really well for. Each "team" gets a 40 pin pic board with a load of LEDS, resistors, wires, bluetooth serial, a couple servo motors and a base , then builds a "performing", moving light-up robot. I just need to figure out how to communicate with the pic!

thanks! -John in WI


10 Replies
jklingert
Posts: 1767
(@jklingert)
Noble Member
Joined: 16 years ago
Reply
Posts: 255
(@frankv)
Reputable Member
Joined: 17 years ago

C source code attached. This is for Linux, sending to a Ren24 board. So it's the opposite of what you're after, sorry. But you should be able to see how it works easily enough.

And you can do away with Vixen and get your kids to program the controller in C too. 🙂

Frank


Reply
LabRat
Posts: 2981
(@labrat)
Famed Member
Joined: 17 years ago

FYI the "Simple REN24" and/or "Simple REN32" are PIC18F series, and would already have the REN parsing code in place.
That being said, the term "robot" is often equated with "autonimous" thus I wonder why you would be looking to something like Vixen to begin with?
There's no feedback mechanism in place there, so how would you create software that could react to say.. walking into a wall?

You might consider looking at something more like the following robot controller (18F series):
http://www.ottawarobotics.org/igore.shtml


Reply
Posts: 3
Topic starter
(@john-in-wi)
Active Member
Joined: 15 years ago

We've been down the traditional robot controller route many times.... robot games & competitions, etc. All successful enough, but fail to add any real artistic creativity into the process. In one robotics summer camp I held, the robots competed and we crowned a winner... we had some time left and asked the kids to make their robot dance to music of their choice. I was overwhelmed with the positive response I got from this "desperation" activity. Some that seemed bored with the process otherwise came alive and enthusiastically participated. Our robotics leadership group has decided to take this to the next level and hold a robotics competition similar to American Idol, etc. We see it as an avenue to interest those that might not otherwise be interested (girls) in robotics.

That is part of the reason I want to write my own PIC code. I want to use a "wide" 40 pin PIC. Then there is the option of including a sensor or 2, which of course, Vixen will not accommodate. We need to write the sensors or what ever into the PIC code.

It is very difficult to write an effective musical sequence in C or other scripted languages. The graphical approach that Vixen takes is ideal for sequencing a robot to music, especially for kids.

As far as I can tell, at each "tick" of vixen, it sends a 0x7d(pad) then a 0x7E (sync) then a 0x80 (address byte) then a sequence of one byte dimmer values for each channel that has been set up.
am I on the right track?

If I was real ambitious, I would grab the sequence data from the Vixen xml file and use it my own robot control software but time is tight. For now, controlling from Vixen will suffice.
Thanks
-John in WI


Reply
Page 1 / 3
Share: