Difference between revisions of "Blog 17"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
|  (Created page with " == 2 Wheel controlled car ==  I made this on the Raspbery Pi for the stepper motor and for 'electric wheels'.  == Stepper motor version ==  Hardware I used:   == 'electric wh...") | |||
| Line 7: | Line 7: | ||
| Hardware I used: | Hardware I used: | ||
| Hardware I used on my Raspberry Pi: | |||
| *One [http://www.bitwizard.nl/shop/raspberry-pi-ui-16x2 RPi_UI board] | ([[User Interface]]) | |||
| *Two [http://www.bitwizard.nl/shop/expansion-boards/7fets 7FETs] | ([[7FETs]]) | |||
| *Two [http://www.bitwizard.nl/shop/cables-connectors/10-20cm-jumper-cables-m-f Jumper cables M-F] | |||
| *Two [http://www.bitwizard.nl/shop/cables-connectors/6-pin-idc-cable-15cm IDC cable 6 pin ] | |||
| *Two 28BYJ-48 Stepper Motor | |||
| Programming: | |||
| *Bash | |||
| === 3D printed wheels code === | |||
| I made the wheels in [http://www.openscad.org/ OpenSCAD] and let them be printed out on a 3d printer. | |||
| The OpenSCAD code: | |||
|  $fs=0.2; $fa=2; | |||
|  module stepperas(d=5, l=25, t=3)  | |||
|  { | |||
|    difference() | |||
|    { | |||
|      cylinder (r=d/2 , h=l); | |||
|  translate ([t/2, -5, -1])   cube([10, 20, l+2]); | |||
|  translate ([-t/2-10, -5, -1])  cube([10, 20, l+2]); | |||
|    } | |||
|  }  | |||
|  difference() | |||
|  { | |||
|    union () { | |||
|      difference () { | |||
|        cylinder (r=60/2 ,h=12); | |||
|        translate ([0, 0, 1.5]) | |||
|          cylinder (r=50/2, h=20); | |||
|      } | |||
|      cylinder (r=6,h=6); | |||
|    }   | |||
|    translate ([0, 0, -1])  | |||
|      stepperas(5.2, 20, 3.2); | |||
|  } | |||
| The full car just went to be a carton box, with everything attached to it with tieraps. | |||
| == 'electric wheels' version == | == 'electric wheels' version == | ||
Revision as of 12:10, 16 November 2015
2 Wheel controlled car
I made this on the Raspbery Pi for the stepper motor and for 'electric wheels'.
Stepper motor version
Hardware I used: Hardware I used on my Raspberry Pi:
- One RPi_UI board | (User Interface)
- Two 7FETs | (7FETs)
- Two Jumper cables M-F
- Two IDC cable 6 pin
- Two 28BYJ-48 Stepper Motor
Programming:
- Bash
3D printed wheels code
I made the wheels in OpenSCAD and let them be printed out on a 3d printer. The OpenSCAD code:
$fs=0.2; $fa=2;
module stepperas(d=5, l=25, t=3) 
{
  difference()
  {
    cylinder (r=d/2 , h=l);
translate ([t/2, -5, -1])   cube([10, 20, l+2]);
translate ([-t/2-10, -5, -1])  cube([10, 20, l+2]);
  }
} 
difference()
{
  union () {
    difference () {
      cylinder (r=60/2 ,h=12);
      translate ([0, 0, 1.5])
        cylinder (r=50/2, h=20);
    }
    cylinder (r=6,h=6);
  }  
  translate ([0, 0, -1]) 
    stepperas(5.2, 20, 3.2);
}
The full car just went to be a carton box, with everything attached to it with tieraps.
'electric wheels' version
Hardware I used: