Senior Project Assistance: Motorcycle Control

In summary: This would definitely make the motorcycle harder to control. I suggest using a stepper motor for this project as it is more accurate and easier to control.
  • #1
LabGuy330
36
0
Hello All,

A friend and I took on a senior project design that is certainly proving to be more difficult than anticipated.

Here are the details:


Design Challenge: Self Balancing Motorcycle

Description: A picture of our prototype is attached. The motorcycle is remote controlled with a DC motor that drives the bike. A tilt sensor is used to determine the inclination and a stepper motor is used to steer the front wheel in order to torque the bike back to a vertical position. Also we are using an Arduino for microprocessing.


My question lies in the set up. I am confused exactly how the sensor tells the motor to turn. I know some sort of pulse width modulation is necessary, which is where I grow weary.

This is how I think the set up should go:

The tilt sensor sends an error signal to the Arduino. The Arduino calculates a proper output through PID control (which we will create the code). The output is sent to the Stepper Motor Controller which converts the signal to PWM which is then sent to the motor. Then the motor turns.

Any help would be greatly appreciated. I can provide more information as well.

Thank you in advance!
 

Attachments

  • photo-2.jpg
    photo-2.jpg
    31.6 KB · Views: 491
Engineering news on Phys.org
  • #2
From the picture it seems like you have achieved your goal - it looks upright and balanced! ha ha

PWM for a stepper motor. Interesting.
You sure it's is a stepper motor?
Doesn't a stepper motor require different coils to be energized in a certain sequence for it to turn, and energizing the coils at a faster pace makes the motor turn faster?

Or are you talking about a pulse width related to the error from the sensor, that is calculated in you PID, to determine for how long the stepper controller should energize the stepper motor, and at what speed and power level(torque)?

You have done your control analysis which I do not want to get into as its complicated for a forum.
 
  • #3
Hey 256bits thanks for the reply!

Yes you are right about the stepper motor being actuated by energizing coils. I now have a better understanding of how things are suppose to work, thank you!

So here is now my new idea for the electronic set up of the balancing motorcycle:

The tilt sensor will produce an error signal to the Arduino. The Arduino will contain a Stepper Motor Control code that will output a pulse generation to the motor driver (this is where I was confused before). Then the controller will send a correction signal to the motor which will rotate and torque the bike back to the proper position.


Of course I am open to any criticism and suggestions.


Current Goals
  • Connect sensor to voltmeter and get some readings
  • Connect sensor to Arduino and get them to talk to each other
  • Place sensor on known inclination angles to test linearity of sensor
  • Figure out Stepper Motor Control code from Arduino Library

Will make updates as days go on.
 
  • #4
Painstaking trial and error, but that is the fun and exciting part, especially when it starts to work.
 
  • #5
17 November 2011

So here is my first update.

My goals today was to connect the tilt sensor to the Arduino and attempt to read some data. This became extremely frustrating and my attempts were unsucessful :(

The tilt sensor outputs a digital data stream. However, the readings I was getting were complete jibberish. It was a random string of strange looking characters (maybe somebody knows what I am talking about). Turning the sensor in each direction didn't appear to get any distinct change in the reading so I unaware if the sensor and Arduino are even talking to each other.

If anyone has experience with Arduinos any help would be greatly appreciated.

The components I am using are:
  • ArduIMU V2 (sensor)
  • Arduino Uno

I have found a program that will display the sensor's orientation (yaw, pitch, roll) and the values for their magnitude called ArduFlight. It works with the IMU without the Arduino so I can at least see if the sensor is working correctly.

Other than that I need to find a way to convert the jibberish serial data into something useful (like numbers lol). I am sure there is a way and I will continue searching for an answer.

Of course any assistance would also be nice. If anyone would like to see my attempted Arduino code I would be happy to show it.

Thanks,

LabGuy
 
  • #6
Being a motorcyclist I suggest drop the stepper motor and use 2 solenoids, both always active to cut out backlash but one may be more active than the other for control inputs. Does this sound like a pair of human arms, could throw in a bit of weight shift as it develops! Good luck
Dom
 

1. What is "Senior Project Assistance: Motorcycle Control"?

"Senior Project Assistance: Motorcycle Control" is a project that aims to assist senior citizens in safely operating a motorcycle. It involves developing technologies and techniques that can improve the control and handling of motorcycles for older individuals.

2. Who is eligible for this assistance?

This assistance is specifically designed for senior citizens who are interested in riding a motorcycle but may have physical limitations that make it challenging. It is not limited to any specific age group, but generally targets individuals over the age of 65.

3. What types of technologies are being developed for this project?

Some of the technologies being developed include adaptive motorcycle controls, such as handlebar extensions and foot pedal modifications, as well as advanced stability systems. Additionally, there may be educational materials and training programs offered as part of the assistance.

4. How can I get involved in this project?

If you are interested in getting involved in this project, you can reach out to the team responsible for the project or look for volunteer opportunities. You can also support the project by spreading awareness and donating to organizations working towards this cause.

5. Is this assistance only available in certain locations?

As the project is still in development, the availability of this assistance may vary. However, the goal is to make it accessible to senior citizens globally. It is recommended to check with the project team or local organizations to see if this assistance is available in your area.

Similar threads

Replies
6
Views
960
Replies
5
Views
3K
  • Mechanical Engineering
Replies
9
Views
2K
Replies
9
Views
1K
  • Mechanical Engineering
Replies
5
Views
962
Replies
3
Views
3K
  • Electrical Engineering
Replies
7
Views
3K
  • Mechanical Engineering
Replies
16
Views
2K
Replies
9
Views
2K
  • Electrical Engineering
Replies
3
Views
800
Back
Top