|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
EEPROM and Encoders
In the past, I have seen teams use EEPROM to record an autonomous mode at the click of a joystick. Of course this makes life SO MUCH SIMPLER except it has some major flaws. The results will vary every time you run it because of battery power(big one), wear and tear on wheels, motor damage, slight modifications etc. So I thought of a neat idea although I haven't yet figured out how this is feasible - record encoder counts into the EEPROM. We would have to avoid time as a variable(unless someone thinks up of a clever scheme). Any ideas?
|
|
#2
|
||||
|
||||
|
Re: EEPROM and Encoders
The idea solution would be to record distance in 2 dimensions as a series of waypoints. This is complicated by the fact that the robot does not travel in perfectly straight lines at 90 degree angles.
You could record time vs speed and then use closed loop feedback to stick as close as possible to that speed. Feedback seems like it should work better than the normal way but like you say something time independant is far better. Perhaps distance vs. speed? IE: when we had traveled 815 ticks we were going 65 WheelTicks/Sec. Distance would be defined as how many ecoder ticks since the start. This still has a problem of the two sides being out of sync. They may reach their relative distances at different times cusing improper turning. Somehow special attention needs to be payed to the phase of the left side and right side. |
|
#3
|
||||
|
||||
|
Re: EEPROM and Encoders
Quote:
an encoder input to a counter could be one of the inputs its looking at. You could store it all in an EEPROM table or you could implement it as a SW algorithm - both will work. |
|
#4
|
||||
|
||||
|
Re: EEPROM and Encoders
Quote:
-Kevin |
|
#5
|
|||||
|
|||||
|
Re: EEPROM and Encoders
Another question: Is there any way to retrieve information from the EEPROM and put it back. In other words manipulate information in the EEPROM. I have not read up about it so that's homework for tonight.
|
|
#6
|
|||||
|
|||||
|
Re: EEPROM and Encoders
iehi
Quote:
http://www.chiefdelphi.com/forums/sh...ad.php?t=39973 |
|
#7
|
|||||
|
|||||
|
Re: EEPROM and Encoders
Quote:
Regarding reading & writing to EEPROM, that's what it's meant for, as non-volatile RAM. Don |
|
#8
|
|||
|
|||
|
Re: EEPROM and Encoders
If you are using encoders for feedback then you probably have a PID loop to make the motor speed relative to the joystick input, right? Well if you let the eeprom store your joystick inputs then your PID loop should correct for when the battery starts dying.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| trentonDrive.c: our joystick/wheel drive code | gnormhurst | Programming | 16 | 03-02-2005 14:40 |