Seg..Stick – A Stick-Controlled, Arduino-Based Segway

47 views
Skip to first unread message

Scott Kozicki

unread,
Dec 26, 2010, 3:43:14 AM12/26/10
to arduino-group...@googlegroups.com


Seg..Stick – A Stick-Controlled, Arduino-Based Segway
ARDUINO BLOG | DECEMBER 26, 2010
http://pulsene.ws/A0xx

[scolton] made a nice self-balaced vehicle based on two DeWalt cordless drills and an Arduino Nano: Segstick is a ... Read more

--
Want to read news on the go? Get Pulse, an awesome news reader for iPad, iPhone and Android. Its Free!

/




Jay Settle

unread,
Jan 22, 2011, 7:24:24 PM1/22/11
to Arduino Group of Nashville
I really like the segstick posting. I took a part a cordless drill and
got it going using pulse width modulation signals from the arduino the
other day. It was pretty cool. I am interested in making something
balance and react with gravity.

On Dec 26 2010, 2:43 am, Scott Kozicki <sc...@truuhealth.com> wrote:
> Seg..Stick – A Stick-Controlled, Arduino-Based Segway
> ARDUINO BLOG | DECEMBER 26, 2010http://pulsene.ws/A0xx

Scott Kozicki

unread,
Jan 22, 2011, 11:28:34 PM1/22/11
to arduino-group...@googlegroups.com
You were able to control speed?

Jay

unread,
Jan 23, 2011, 1:21:58 AM1/23/11
to arduino-group...@googlegroups.com
Yea with the arduino!

-Jay

Kara

unread,
Jan 23, 2011, 4:50:53 PM1/23/11
to Arduino Group of Nashville
Thats really impressive, did you use an accelerometer or just the
nano?

On Jan 23, 12:21 am, Jay <jayset...@gmail.com> wrote:
> Yea with the arduino!
>
> -Jay
>
> On Jan 22, 2011, at 10:28 PM, Scott Kozicki <sc...@truuhealth.com> wrote:
>
>
>
>
>
>
>
> > You were able to control speed?
>

Jay

unread,
Jan 23, 2011, 4:56:57 PM1/23/11
to arduino-group...@googlegroups.com
I was using an arduino and a potentiometer. I'll post a schematic in a sec.

-Jay

Jay Settle

unread,
Jan 23, 2011, 6:17:42 PM1/23/11
to arduino-group...@googlegroups.com
This was a fun project to do. I've always wanted to control bigger currents demanding motors with the arduino. I was very impressed with the seg stick post because of the in depth explanation and the schematic. Couldn't have done it without that.

All the electronics were in this little black box behind the trigger. The black box has two grounds, a positive and negative for the battery, a positive and negative for the motor, and a signal wire connection which needs a pulse width modulation that conveniently the arduino can create.
So I took my oscilloscope and prodded the electronic speed control and ran the drill at the same time going from connection to connection until I got something that looked like a pulse width modulation signal(see link):

http://www.micromouseinfo.com/introduction/images/intro_hardware/PWMod.gif

then I hooked a wire from the arduino pin 9 to this pulse width mod signal wire on the drill. hooked the ground from the drill battery to the ground of the arduino .hooked the potentiometer up and ran the sweep wire of the pot to the arduino analog pin 0
and wrote the code.

http://www.arduino.cc/en/Tutorial/Potentiometer

Code:________________
int drillSignal = 9;
int potSignal = 0;
int val = 0;

void setup(){
pinMode(drillSignal, OUTPUT);
}

void loop(){
val = analogRead(potSignal);

digitalWrite(drillSignal, val/4);
}




 
photo(2).JPG

Kara

unread,
Jan 23, 2011, 6:26:05 PM1/23/11
to Arduino Group of Nashville
did you use a library to code the pot? and how fast does it actually
go?

On Jan 23, 5:17 pm, Jay Settle <jayset...@gmail.com> wrote:
> This was a fun project to do. I've always wanted to control bigger currents
> demanding motors with the arduino. I was very impressed with the seg stick
> post because of the in depth explanation and the schematic. Couldn't have
> done it without that.
>
> All the electronics were in this little black box behind the trigger. The
> black box has two grounds, a positive and negative for the battery, a
> positive and negative for the motor, and a signal wire connection which
> needs a pulse width modulation that conveniently the arduino can create.
> So I took my oscilloscope and prodded the electronic speed control and ran
> the drill at the same time going from connection to connection until I got
> something that looked like a pulse width modulation signal(see link):
>
> http://www.micromouseinfo.com/introduction/images/intro_hardware/PWMo...
>
> then I hooked a wire from the arduino pin 9 to this pulse width mod signal
> wire on the drill. hooked the ground from the drill battery to the ground of
> the arduino .hooked the potentiometer up and ran the sweep wire of the pot
> to the arduino analog pin 0 and wrote the code.
>
> http://www.arduino.cc/en/Tutorial/Potentiometer
>
> *Code:*________________
>  photo(2).JPG
> 2511KViewDownload

Jay

unread,
Jan 23, 2011, 6:30:07 PM1/23/11
to arduino-group...@googlegroups.com
No library. That code is it. I tried to locate my original code but couldn't find it so I'm not sure if that code will compile. Let me know if it doesn't please. It goes full speed!

-Jay

Reply all
Reply to author
Forward
0 new messages