Segway like véhicle with Flowcode DSpic

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

benp
Posts: 155
Joined: Sat Mar 28, 2009 5:44 pm
Location: LYON FRANCE
Has thanked: 3 times
Been thanked: 41 times
Contact:

Segway like véhicle with Flowcode DSpic

Postby benp » Wed Feb 15, 2012 5:25 pm

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).



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...
These users thanked the author benp for the post:
Benj (Wed Feb 15, 2012 5:26 pm)
Rating: 5%
 
Regards
INSA 1er cycle GCP projects with or without eblocks:
http://www.youtube.com/user/INSAgcp

User avatar
DavidA
Matrix Staff
Posts: 1064
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 276 times
Contact:

Re: Segway like véhicle with Flowcode DSpic

Postby DavidA » Thu Feb 16, 2012 1:14 pm

Looks great!

User avatar
Steve
Matrix Staff
Posts: 3146
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 103 times
Been thanked: 412 times
Contact:

Re: Segway like véhicle with Flowcode DSpic

Postby Steve » Thu Feb 16, 2012 3:45 pm

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.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 381 times
Been thanked: 716 times
Contact:

Re: Segway like véhicle with Flowcode DSpic

Postby JohnCrow » Thu Feb 16, 2012 7:15 pm

Just wish I could have had Flowcode & E-Blockswhen I was at college
1 in 10 people understand binary, the other one doesn't !

benp
Posts: 155
Joined: Sat Mar 28, 2009 5:44 pm
Location: LYON FRANCE
Has thanked: 3 times
Been thanked: 41 times
Contact:

Re: Segway like véhicle with Flowcode DSpic

Postby benp » Thu Feb 16, 2012 9:02 pm

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:
viewtopic.php?f=2&t=9955
Step 3 is the computing project for students...
Regards
INSA 1er cycle GCP projects with or without eblocks:
http://www.youtube.com/user/INSAgcp

benp
Posts: 155
Joined: Sat Mar 28, 2009 5:44 pm
Location: LYON FRANCE
Has thanked: 3 times
Been thanked: 41 times
Contact:

Re: Segway like véhicle with Flowcode DSpic

Postby benp » Sat Sep 22, 2012 12:16 am

The video with the scale1 segway is ready:

Inside:
dsPIC30F3014
FlowcodeV4 dsPIC program
Sensor fusion (not with the kalman filter method)
PID control
Wifi control with an Android phone
These users thanked the author benp for the post (total 2):
Steve (Mon Sep 24, 2012 9:37 am) • Benj (Mon Sep 24, 2012 9:56 am)
Rating: 10%
 
Regards
INSA 1er cycle GCP projects with or without eblocks:
http://www.youtube.com/user/INSAgcp

benp
Posts: 155
Joined: Sat Mar 28, 2009 5:44 pm
Location: LYON FRANCE
Has thanked: 3 times
Been thanked: 41 times
Contact:

Re: Segway like véhicle with Flowcode DSpic

Postby benp » Tue Oct 16, 2012 9:10 pm

If you want to see the E-Blocks inside.
This picture is during test before painting...
Attachments
ARI.jpg
ARI.jpg (177.64 KiB) Viewed 4679 times
These users thanked the author benp for the post (total 2):
Enamul (Tue Oct 16, 2012 10:25 pm) • Benj (Wed Oct 17, 2012 11:55 am)
Rating: 10%
 
Regards
INSA 1er cycle GCP projects with or without eblocks:
http://www.youtube.com/user/INSAgcp