tag:blogger.com,1999:blog-7214097671310478681.post7344696606537341680..comments2024-03-28T04:12:30.223-07:00Comments on RCArduino: Lap Timer Build Along Part 4 - Adding the IR DetectorCan_I_Trade?http://www.blogger.com/profile/07867684474123805993noreply@blogger.comBlogger20125tag:blogger.com,1999:blog-7214097671310478681.post-11055367234687284812019-05-23T07:30:50.273-07:002019-05-23T07:30:50.273-07:00Hi Duane,
Thank you for posting this project in in...Hi Duane,<br />Thank you for posting this project in incredible detail! <br />I'm an electronics technologist and my son is just getting into RC cars, so this project is a perfect fit for us! I have a few questions, if you don't mind....<br />Could you recommend a part # for the IR emitter and detector? It looks like you've used similar parts to: https://www.adafruit.com/product/157 and https://www.adafruit.com/product/387<br />Also, I was just curious how you mount it in your car? Do you have the top of the LED pointing out the side window? Thanks!Jeff Dolbyhttps://www.blogger.com/profile/01576323963090704081noreply@blogger.comtag:blogger.com,1999:blog-7214097671310478681.post-85411086271006073872016-04-04T03:42:09.830-07:002016-04-04T03:42:09.830-07:00Hello Duane !
Can you contact with me by email? I...Hello Duane !<br /><br />Can you contact with me by email? I have some questions about code for Arduino.<br />sniz (@) tut.byAnonymoushttps://www.blogger.com/profile/04521093547655872367noreply@blogger.comtag:blogger.com,1999:blog-7214097671310478681.post-63044889918018036652016-04-04T03:41:31.918-07:002016-04-04T03:41:31.918-07:00Hello Duane !
Can you contact with me by email? I...Hello Duane !<br /><br />Can you contact with me by email? I have some questions about code for Arduino.<br />sniz (@) tut.byAnonymoushttps://www.blogger.com/profile/04521093547655872367noreply@blogger.comtag:blogger.com,1999:blog-7214097671310478681.post-47276364617243447002015-03-25T03:05:32.187-07:002015-03-25T03:05:32.187-07:00Hi, i would like to make your IR trasponder. can i...Hi, i would like to make your IR trasponder. can i have the latest code for the project? My email is s.frix@hotmail.it thank youAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-7214097671310478681.post-50706943795997026482014-05-29T06:09:46.277-07:002014-05-29T06:09:46.277-07:00Pin 1 of the detector needs to be connected to pin...Pin 1 of the detector needs to be connected to pin 2 of the Arduino. DuaneCan_I_Trade?https://www.blogger.com/profile/07867684474123805993noreply@blogger.comtag:blogger.com,1999:blog-7214097671310478681.post-926808975761932102014-05-29T05:50:35.542-07:002014-05-29T05:50:35.542-07:001) It's an Arduino Uno.
2) I wasn't sure...1) It's an Arduino Uno. <br /><br />2) I wasn't sure about the respective Arduino pin (as described in my second message), so I tried the detector only in the circuit shown here https://learn.adafruit.com/ir-sensor/testing-an-ir-sensor . <br />Results: <br /><br />first: LED almost turned off, reaction to IR is fine. <br /><br />after a while: LED is constantly lightning (brighter), it doesn't seem to react to IR at all. <br /><br />3) My sensor (i'll link the data sheet) is the following: https://cdn-reichelt.de/documents/datenblatt/A500/TSOP312SERIES_DATASHEET.pdfPhilnoreply@blogger.comtag:blogger.com,1999:blog-7214097671310478681.post-42820243723362346052014-05-29T05:40:00.553-07:002014-05-29T05:40:00.553-07:00Next questions, which model of Arduino are you usi...Next questions, which model of Arduino are you using ? What pin is the IR Input connected to ? and what IR Detector are you using ? Duane.Can_I_Trade?https://www.blogger.com/profile/07867684474123805993noreply@blogger.comtag:blogger.com,1999:blog-7214097671310478681.post-3240151577058045982014-05-29T05:07:51.180-07:002014-05-29T05:07:51.180-07:00It is in a box indeed, today's try didn't ...It is in a box indeed, today's try didn't have different results either. I also tried the box under a blanket, so there was absolutely no other light than the status LED.<br /><br />My IR-detector looks a bit different than yours but it's for 38 kHz and I made sure its pins I connected are correct, so basically it should work.Philnoreply@blogger.comtag:blogger.com,1999:blog-7214097671310478681.post-74724776459600182842014-05-29T04:37:07.405-07:002014-05-29T04:37:07.405-07:00Just to make sure - your IR Detector is in a box w...Just to make sure - your IR Detector is in a box with a very small openning ? If not, daylight, room light, all kinds of light will interfere with it.<br /><br />Duane. Can_I_Trade?https://www.blogger.com/profile/07867684474123805993noreply@blogger.comtag:blogger.com,1999:blog-7214097671310478681.post-53863053524694426702014-05-28T10:48:23.296-07:002014-05-28T10:48:23.296-07:00Okay, thanks for the quick help. I uploaded the la...Okay, thanks for the quick help. I uploaded the latest software, changed the wiring and added a buzzer. The buzzer works nicely as I start recording. I didn't plugin the IR at first and at some random points arduino kind of generated a lap, although nothing happened. I connected the IR-detector after checking its circuit again but with the same result as before.<br /><br />So I made the same circuit as shown on the adafruit page from the link to test my sensor. Since I know the transponder is working, that should be it. It's quite awkward, at first the LED was off and lighted as I moved the transponder (so that should've been fine), after a while without changing the setup, the LED began to shine constantly. No matter if the sensor was covered or not, and even brighter than when I was testing the IR detection. Also it doesn't react to the IR anymore now, even after plugging off and on.<br /><br />So my guess is that I should find a different detector.<br /><br />To try the rest of the work, I'd need to know at which pin to connect the fake a lap button. It does work with the same code, right? And then will that same pin work for the IR detector as well? I tried to analyse the code, but I couldn't find anything pin related there.<br /><br />GreetingsAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-7214097671310478681.post-35379853666865174512014-05-28T08:47:30.666-07:002014-05-28T08:47:30.666-07:00Hi, It might not be a problem in your status LED W...Hi, It might not be a problem in your status LED Wiring, if your running older code, the status LED might be connected to something that is drawing current. I suggest that the first thing you do is download the latest code, then adjust your wiring based on the PINs used in the latest code and then let me know how you get on. Duane.<br />Can_I_Trade?https://www.blogger.com/profile/07867684474123805993noreply@blogger.comtag:blogger.com,1999:blog-7214097671310478681.post-5774137859512936352014-05-28T08:46:03.945-07:002014-05-28T08:46:03.945-07:00Hi, Two things 1) The status LED Should be off alt...Hi, Two things 1) The status LED Should be off altogether when there is no signal, so it looks like you have a problem in the wiring there. 2) I would suggest that you use the latest code from the downloads post, it has a few more features but - the pins are different, you will need to look at the comments in the sketch file and rewire your LCD and buttons for this code to work. Duane.Can_I_Trade?https://www.blogger.com/profile/07867684474123805993noreply@blogger.comtag:blogger.com,1999:blog-7214097671310478681.post-63018149637422392302014-05-28T08:36:54.212-07:002014-05-28T08:36:54.212-07:00Hey Duane,
first of all this is a great project, ...Hey Duane,<br /><br />first of all this is a great project, I think lots of RC drivers have been waiting for such, just as me. Thanks a lot for the effort of making this an easy build along for everybody to make. There's only one problem I have come across in the testing phase:<br /><br />The transponder and IR section works fine, the status LED of the receiver lights more when IR is seen by the detector. So far so good. The arduino itself is wired as seen in the pictures of buildalong #1, the code is copied from the code you posted in the same article. I uploaded all three files to the arduino (i'm using an uno). I can start recording, but apparently neither the fake a lap button nor IR - now i connected that - can actually "produce" laps on it. Time just keeps counting without interruptions. I carefully checked the wiring several times and it all looks quite good. Do you have any idea what could be the problem?<br /><br />PhilAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-7214097671310478681.post-29623662490927548902013-10-18T08:00:17.274-07:002013-10-18T08:00:17.274-07:00Hi, The answer is in your question - 'I need t...Hi, The answer is in your question - 'I need to measure the time of each car' so you need to record the last time you saw each pulse length and the next time you see a particular pulse length, you will know what the lap time was for that car. Do this for all three pulse lengths and you have the lap times for all three cars.<br /><br />DuaneCan_I_Trade?https://www.blogger.com/profile/07867684474123805993noreply@blogger.comtag:blogger.com,1999:blog-7214097671310478681.post-81659508533649889262013-10-16T14:31:14.898-07:002013-10-16T14:31:14.898-07:00but, even when using different pulse width in each...but, even when using different pulse width in each car. How I can detect every car in arduino? Because I need to measure the time of each car.Carlos Penahttps://www.blogger.com/profile/03782153801610431287noreply@blogger.comtag:blogger.com,1999:blog-7214097671310478681.post-25987549159910227282013-10-15T02:55:42.961-07:002013-10-15T02:55:42.961-07:00Hi, You could track two or three cars using the ba...Hi, You could track two or three cars using the basic technique. I have not tried it yet but the basic approach would be to use different pulse widths for each cars transponder. As long as the detector is able to see all three cars, its should be able to detect them. The easiest way to make sure the detector can see all of the cars is to mount it at an angle somewhere above and to the side of the track.<br /><br />DuaneCan_I_Trade?https://www.blogger.com/profile/07867684474123805993noreply@blogger.comtag:blogger.com,1999:blog-7214097671310478681.post-57303880894381081552013-10-15T02:19:12.183-07:002013-10-15T02:19:12.183-07:00Hi, this is a fantastic project. I am waiting for ...Hi, this is a fantastic project. I am waiting for my arduino, when I have it, I will make this project.<br />I am very interested in can use the same arduino for 2 or 3 vehicles, making 2 or 3 transponders. Do you tried it? Do you think it's possible?Carlos Penahttps://www.blogger.com/profile/03782153801610431287noreply@blogger.comtag:blogger.com,1999:blog-7214097671310478681.post-82430237258747251112013-09-18T10:26:52.312-07:002013-09-18T10:26:52.312-07:00Jorge C,
Thanks for posting these responses. I ...Jorge C,<br /> Thanks for posting these responses. I knew that the magnet could be picked up using 'window sensors' which are esseantial reed sensors but have never tried it in practice so did not want to suggest something I had not tried myself - good advice on the capacitor as well. The track I used to race on was very bumpy in places, do bumps and running over the rumble strip cause false readings or are the reed sensors pretty reliable ?<br /><br />Its easy enough to code around if you do get false readings, but lets see if there is a problem or not before writing solutions.<br /><br />Duane B Can_I_Trade?https://www.blogger.com/profile/07867684474123805993noreply@blogger.comtag:blogger.com,1999:blog-7214097671310478681.post-66780210775312506782013-09-05T08:55:11.155-07:002013-09-05T08:55:11.155-07:00Oops,
I forgot the capacitor; it's necessary ...Oops,<br /><br />I forgot the capacitor; it's necessary a capacitor in parallel in the resistor that is connected to ground, thus reducing noises caused the reed relay opening and closing.Jorge Cnoreply@blogger.comtag:blogger.com,1999:blog-7214097671310478681.post-79753312024318432322013-09-05T07:19:59.249-07:002013-09-05T07:19:59.249-07:00Hello,
I've just found your blog and I have t...Hello,<br /><br />I've just found your blog and I have to say it is fantastic!!<br /><br />I was considering doing what you are doing : creating a lap timer plus rpm sensor, etc.<br /><br />Anyway, about the magnetic strip used in kart race tracks:<br /><br />A reed sensor (normally open) is usually enough. <br />5V on one side of the reed sensor and 2 resistors on the other side of the reed sensor. One resistor to ground the input when the reed sensor is open, and the other (10Kohm) to limit the current going into the chip interrupt pin.Jorge Cnoreply@blogger.com