Page 1 of 1

Segway like véhicle with Flowcode DSpic

Posted: Wed Feb 15, 2012 5:25 pm
by benp
This year, one student group(INSA Lyon-France) works on the upgrade of last year vehicle.
See here for last year project:
http://www.matrixmultimedia.com/mmforum ... 106#p29031

We test Flowcode Dspic and that's easier to code because float are supported natively by dspic.
We use a dsPIC30F3014.
The code is very small: only 65 flowcode steps are needed to perform the stabilisation. Most steps are for printing on LCD(21 steps).

Here is the small scale model moving (not really because stabilised).

[/youtube]

We use Eblock+one accelerometer/gyro card+one Sabertooth card and our standard motor and PVC board.

The scale 1 manufacturing will finish in june.
Next step is wifi control...

Re: Segway like véhicle with Flowcode DSpic

Posted: Thu Feb 16, 2012 1:14 pm
by DavidA
Looks great!

Re: Segway like véhicle with Flowcode DSpic

Posted: Thu Feb 16, 2012 3:45 pm
by Steve
I wish I had such interesting things to do when I was studying!

And I hope your students appreciate the motivating challenges you are giving them.

Re: Segway like véhicle with Flowcode DSpic

Posted: Thu Feb 16, 2012 7:15 pm
by JohnCrow
Just wish I could have had Flowcode & E-Blockswhen I was at college

Re: Segway like véhicle with Flowcode DSpic

Posted: Thu Feb 16, 2012 9:02 pm
by benp
The basic wifi control is ready now on the flowcode side.
It is now possible to control it with windows and netstuff or an Android device and Packet injection.
This is like step 2 of this project:
http://www.matrixmultimedia.com/mmforum ... f=2&t=9955
Step 3 is the computing project for students...

Re: Segway like véhicle with Flowcode DSpic

Posted: Sat Sep 22, 2012 12:16 am
by benp
The video with the scale1 segway is ready:
[/youtube]
Inside:
dsPIC30F3014
FlowcodeV4 dsPIC program
Sensor fusion (not with the kalman filter method)
PID control
Wifi control with an Android phone

Re: Segway like véhicle with Flowcode DSpic

Posted: Tue Oct 16, 2012 9:10 pm
by benp
If you want to see the E-Blocks inside.
This picture is during test before painting...