Author Topic: Magic Pie and DIY Segway  (Read 11795 times)

Offline segway_diy

  • Confirmed
  • New Member
  • *
  • Posts: 3
Magic Pie and DIY Segway
« on: May 08, 2012, 07:35:01 PM »
Hi everyone!

I've been browsing through the Forum and didn't find the answers to my questions, so here it is ...

I'm thinking of making my own Segway and have been searching through the internet looking for other DIY Segway projects. All of the projects I have found are using external motors and some kind of transmition to the wheel (belt, chain, gearbox). I personally think a wheel motor would be much better and I'm interested in using two Magic Pie wheels for this (16, 18 or 20" size).

The Segway would, of course, be driven by a microcontroller (or several of them) and an accelerometer/gyro sensors. What I need to evaluate if Magic Pie would be suitable for this application are answers to several questions:

1. I would like to have a single side mount of the wheel (without the need for the fork). Can the wheel axel be replaced?
2. What are the voltage levels for the input signals for the throttle, brake, ..., to drive the controller? Are they Analog, Digital, are they on/off type or is the input linear?
3. I've seen the pin for the Reverse ... Does this Reverse the motor direction? Does the controller respond immediately to the change of direction (provided the motor has just stopped)?
4. Can two wheels be driven by the same battery (when using regenerative braking)?
5. Is there a way to measure the speed of the wheels using the hall sensors in the wheel?

Any other thoughts regarding my project?

Tomaz

Offline Morgen 3Eman

  • Confirmed
  • PhD. Magic
  • ******
  • Posts: 620
Re: Magic Pie and DIY Segway
« Reply #1 on: May 09, 2012, 06:18:37 PM »
I salute your courage, Sir.  That is a big project.  Please keep us informed as your work progresses.

TTFN,
Dennis

Offline segway_diy

  • Confirmed
  • New Member
  • *
  • Posts: 3
Re: Magic Pie and DIY Segway
« Reply #2 on: May 11, 2012, 04:07:50 PM »
Thank you ...

While waiting for some answer, I did some more research and found some info ...

2. The pins for the brake and Reverse probably have a pull up resistor, and they are activated by shorting them to the ground (they are on/off type). The throttle should be analog from 0 to +5V.

Since I found a unicycle build with Magic Pie, I know the Segway can  be built, what I still need to know if it uses the internal controller.

I intend to build a small scale version to test the program first since I don't wan't to test by falling :)

I'll probably use lead batteries in the beggining (because of the price tag).

Some more info about electronics ... I intend to use an Arduino Mega board for the primary controller (sensors, calculations and motor control) and Ardiuno Uno for the secondary functions (color display, speed, voltage, consumption, lock/unlock, speed limit, ...).

I still need info in 1,3,4,5.

Offline Bikemad

  • Global Moderator
  • Professor
  • PhD. Magic
  • ******
  • Posts: 5,553
Re: Magic Pie and DIY Segway
« Reply #3 on: May 12, 2012, 03:45:48 AM »
Hi andto the forum Tomaz.

1. I would like to have a single side mount of the wheel (without the need for the fork). Can the wheel axel be replaced?
I'm pretty sure the axles are just press fitted into the stator, with a locating key & keyway to transmit the torque to the axle, so it should be possible to carefully press them out again.



On the MPIIIs, it should be possible to machine the existing axle to receive a suitable piece of steel tubing to join the two axles together.
A steel disc could be welded to the tube and secured to the stator with bolts through the existing internal controller heatsink assembly. Or alternatively, the steel disc could be used instead of it the internal controller assembly (as drawn below) if you decided to use an external controller.



As you will not be using disc brakes, the cooling fan/disc mounting ring can either be left off completely, or machined out in the centre to give clearance for the motor cables which could be strapped to the outside of the extended axle tube. The machining of the centre holes would need to be done prior to the fan assemblies being slid over the extension tube before the steel discs were finally welded in place. ::)

2. What are the voltage levels for the input signals for the throttle, brake, ..., to drive the controller? Are they Analog, Digital, are they on/off type or is the input linear?
Typically the voltage is between 0.8-4.5V from throttle hall sensor. (1.25V-3.5V appears to be the working throttle range).

3. I've seen the pin for the Reverse ... Does this Reverse the motor direction? Does the controller respond immediately to the change of direction (provided the motor has just stopped)?
Check out my video on YouTube and see for yourself.

4. Can two wheels be driven by the same battery (when using regenerative braking)?
This should be fine, the Dual Piant is made to work that way.

5. Is there a way to measure the speed of the wheels using the hall sensors in the wheel?
You should be able to somehow use the high/low (+5V/0V) pulses from one of the hall sensors, 28 high/low pulses = one revolution (28 North + 28 South = 56 poles), but you'll have to figure out your own way of converting the pulses to give the relative speed readings.

I'm not so sure that the standard internal controller will be responsive enough to cope with the necessary directional input changes that will be required to maintain perfect balance. Also, the regenerative braking does seem to have a slight delay before it takes effect. I was actually toying with the idea of using a tilt switch connected to the brake switch, just to stop me from flipping over backwards on hills when I pull away too quick, but I'm not sure that the regen would respond quick enough to prevent it from happening. ???

I think the joystick controlled brushless motor controller (which is designed for wheelchair use) could be a better choice (assuming it's responsive enough).

Perhaps we can ask someone at GM to try and balance one of the electric wheelchairs on its rear wheels to see how responsive the joystick control actually is? Henry would be a prime candidate as he has already mastered the electric unicycle, but is he ready for the ultimate wheelchair challenge? ;D
 
Alan
 
« Last Edit: July 02, 2017, 11:01:47 PM by Bikemad »

Offline segway_diy

  • Confirmed
  • New Member
  • *
  • Posts: 3
Re: Magic Pie and DIY Segway
« Reply #4 on: May 12, 2012, 06:38:52 AM »
Alan, thanks for the great answers.

I think I have all the answers I needed, actually this is a project planned for the next autumn/winter, but it is never to early to start collecting info and then ordering stuff, since it usually takes some time to collect everything.

I have one more question. When considering an external controller, is it sensible to use a different hub wheel (maybe MW16B) with BAC282P and lower the price tag significantly?

Thanks, Tomaz
« Last Edit: June 11, 2012, 06:57:53 AM by segway_diy »

Offline Morgen 3Eman

  • Confirmed
  • PhD. Magic
  • ******
  • Posts: 620
Re: Magic Pie and DIY Segway
« Reply #5 on: May 12, 2012, 04:57:14 PM »
You are so clever, Alan! 

By using the cover bolt pattern it would be easily possible to mount a MP3 to a single sided swing arm, and never have to worry about torque reaction.

Thanks for showing me what I couldn't see for myself.

TTFN,
Dennis