![]() | ![]() | ![]() |
| |||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
![]() |
| | Tools |
| | #1 |
|
Hi Guys; My very first query was messed up, so I am posting my query again. My project has two objects, one stationary and other mobile. When the mobile object touches(at a slow speed) the stationary object, a LED should light up....this is the easy part. Next, when the same mobile object is moved very fast towards the stationary object, another LED should light up and it should Flash! indicating that the action has been very rapid as against a lethargic movement...This is the Important part of my project. Please help me with this problem!! | |
| |
| | #2 |
|
Time stamp the starting point (when you set the object in motion) Time stamp the ending point (when the object hits the obstical) Subtract the two and you have a difference. The small of the two differences is going to be the faster object.
__________________ "Because I be what I be. I would tell you what you want to know if I could, mum, but I be a cat, and no cat anywhere ever gave anyone a straight answer, har har." | |
| |
| | #3 |
|
what is your problem? is it mathematics? what sensors are going to use to detect the start and stop time? i propose 1 IR led sender, and 2 receivers, with this sensor placed infront of the moving object, any stupid uController can perform the tast of calculating the speed of the moving object, by comparing the time at which the 2 sensors were trigered. | |
| |
| | #4 |
|
Hi; No, the problem is not maths! In fact the Subject heading is diverting you guys to wrong solution. I am not looking for recording the speed of the action My problem or rather I am looking for this solution: When the mobile object touches(at a slow speed) the stationary object, a LED should light up....this is the easy part. Next, when the same mobile object is moved very fast towards the stationary object, another LED should light up and it should Flash! indicating that the action has been very rapid as against a slower movement...This is the Important part of my project. Let me explain with a simple example: It is like pressing on your Gas-Paddle while driving a car. When you press the Gas-Paddle ( I presume slowly) a LED should light up. Now, imagine you press the Gas - Paddle all the way down, the action of your foot ( or the Paddle) is very swift. The circuit should acknowledge this change of motion of the paddle ( the swiftness) and light up another LED ( may be different color or just flash). Here, the Gas-Paddle is a moving object and the floor of the car is a stationary object. I hope I have been able to explain the problem!! Thanks! | |
| |
| | #5 |
|
already posted an idea in the other thread. why don't you use an accelerometer .?
__________________ Gods own Country Incredible !ndia www.flickr.com/photos/_akg/ "Give a man a fish, and he will eat for a day. Teach that man to fish, and he will eat for a lifetime." | |
| |
| | #6 | |
| Quote:
You started by talking of one object hitting another, then the analogy of moving the accelerator pedal of a car is used. I am totally confused. WHAT DO YOU WANT TO MEASURE??? An impact between two objects? The speed of an object? The acceleration of an object? What are the object involved? If we dont know what it is, how can we suggest ways of measuring it? Define the problem clearly and you may get some meaningfull replies. JimB
__________________ Experience is directly proportional to the value of the equipment ruined. | ||
| |
| | #7 |
|
ok, I'll take a stab at it. He wants to determine when the mobile object moves above a certain velocity. I assume that the indicator is on the stationary object. This requires determining the distance of the object at specific periods and computing the speed. If that is correct, you need a distance sensor in the stationary object that can track the mobile object. The uC would read the distance at periodic intervals and compute the speed. when the speed is above the threshold, the hi speed led gets lit. seems like a wierd school assignment | |
| |
| | #8 |
|
Dear Philba: You are very close to what I am looking for in my project: "The uC would read the distance at periodic intervals and compute the speed. when the speed is above the threshold, the hi speed led gets lit." Any idea, which UC I can use or if have come accross a circuit I can use!! | |
| |
| | #9 |
|
If you use a PIC micro, you could either use a potentiometer and connect it to the mechanical movement of the lever/object that you are monitoring speed. Then do the following in your program; * Create a time interval routine * Every 1/100th of a second (or less), make a new reading from the pot * If last value is more than new value by a certain amount (i.e. - its accelerated to fast) then turn on LED2, but if the acceleration is within limits then turn on LED1 This would work if your problem consists of a mechanical movement such as the 'gas pedal' as you described earlier. If the mechanical device is moving extremely quickly all the time, a potentiometer will probably be subject to mechanical failure.. Perhaps there's other better mechanical 'voltage dividers' out there instead of pot's
__________________ digital-diy.com - Hobby microcontroller projects and tutorials. Assembly, PICBasic and C examples. | |
| |
| | #10 | |
| Quote:
JimB
__________________ Experience is directly proportional to the value of the equipment ruined. | ||
| |
| | #11 |
|
I posted earlier and thought I'd better explain what I meant a bit more. I threw something together really fast, it can definitely be refined, I used a a lot of variables to try and help you follow the code, its written in Proton+ This is untested, but just my view of a solution for your problem. PHP Code:
__________________ digital-diy.com - Hobby microcontroller projects and tutorials. Assembly, PICBasic and C examples. Last edited by gramo; 23rd December 2006 at 11:34 PM. | |
| |
| | #12 |
|
gramo, I think the mobile and stationary units are not connected. atuldey, you can use any uC. your biggest challenge is to figure out how to do ranging (distance measurement). there are several approaches: ultrasonic, IR and true radar. all 3 require that you track the object since the beam is highly directional. so, you will need tracking as well as ranging. I think true radar is out of the question. get googling. | |
| |
| | #13 |
|
Hi Gramo and Philba; No measurement please!! Even after acknowledging earlier that Philba, you got me right...I am trying to figure out how I can make the second LED light up once the moving object (the Paddle) moves at a faster speed ( like instantly pressing the Gas-Paddle)as against routine or normal pressure on the gas paddle ( first LED lights up). Gramo...You are close, but could you please suggest me with my explainations above... | |
| |
| | #14 |
|
A paddle.. Hmm, like a boat paddle that is anchored at a point and has a lever type action to move it?
__________________ digital-diy.com - Hobby microcontroller projects and tutorials. Assembly, PICBasic and C examples. | |
| |
| | #15 |
|
mAKE A PICTURE IN MS PAINT THEN EXPLAIN IT, what u want.
| |
| |
|
| Tags |
| action, recording, speed |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| Intelligent digital speed control system for small truck model | classic | Robotics Chat | 2 | 8th October 2006 12:57 PM |
| Government Ignores Police Concerns In Changing Speed Limit Rules | ThermalRunaway | Chit-Chat | 5 | 20th August 2006 03:35 AM |
| motor speed control | goodpickles | Electronic Projects Design/Ideas/Reviews | 1 | 26th February 2005 09:57 AM |
| design problem faced on PWM brushless motor speed control | swear_swear | Electronic Projects Design/Ideas/Reviews | 0 | 23rd June 2003 02:06 AM |
| Monitoring PIns of controller at the same time | waqar | Micro Controllers | 9 | 12th May 2003 11:12 AM |