ChromeRhino
New member
Hey everyone,
I am getting back to my Rat Wagon build (http://www.diygokarts.com/vb/showthread.php?t=32790) that will consist of an electric 24v motor to power it with a fake engine up front to complete the "look" of a hot rod/rat rod. Now, we can't have a "hot rod" without the engine sounds of a hot rod, now can we?! (well, we COULD... it just wouldn't be as cool!) It seems that I don't get much done but am always adding to it and making it much more of a project with more difficulty. Ah well, it's in my nature.
Enter in to the project a Arduino Uno R3 microcontroller. I searched to see if anyone else has did anything on here with an Arduino but I couldn't find any so I guess I will touch a bit on what it is, how it works and what I plan to do with it.
Arduino (usually pronounced Ar-dwing-o, but there are other pronunciations) is a company based in Italy that makes an open-sourced micro-controller with various platforms with various options. (From Wiki-pedia) A microcontroller is a small computer (SoC) on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals. Program memory in the form of Ferroelectric RAM, NOR flash or OTP ROM is also often included on chip, as well as a typically small amount of RAM. The platform I decided on for this build is an Arduino Uno R3. The "R3" is just simply "Reversion #3", the third version of the Uno board. The Uno board based on the ATmega328. It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a reset button. The Arduinos have open source libraries written in C programming language.
My plan is to integrate a 10kohm POT into the throttle peddle to supply a 0-5+ volt signal to the Arduino Uno. As the throttle peddle is pushed down the POT will turn from one pole towards the other and supply a voltage between 0 and 5v. The voltage will be read by the microcontroller and depending upon the programming that I write for it, it will output certain functions in direct correlation to the input from the POT. The Arduino will process the information at 16Mhz with the program information that I write. If I do it well enough I hope to add realistic engine sound that rev in correlation to the throttle in "neutral" mode and accelerates in correlation to speed when in "drive" mode. It will have a "starter" at the beginning that sounds like a starter is turning the engine over, a horn when a button is pressed and anything else I come up with between now and then to make it more realistic.
Along with engine sounds the Arduino will also control a servo motor that will control the "throttle linkage" to the carbs for a realistic effect and a small DC motor that will spin the belts and fan in relation to supposed engine RPM. There will also be LED's for the headlights, tail lights, blinkers and whatever else I can come up with if time permits.
I am going to either build or buy a separate circuit to store the engine noise snippets, DAC (Digital to Analog Converter), and amplifier to power the 6.5" speaker that will provide the "engine noise." The speaker will be in a custom ported box tuned to the lowest frequency that the engine sound will "produce". There will be two ports that start in the speaker box but will exit the box, turn and terminate at the back of the go kart, making them look like the exhaust pipes. I will include all of the information on the speaker box and math that I used to get the right air space, port diameter and length and tone, as well as provide the Thiele/Small parameters of the speaker and a small "How-to" section to help others if there are any that want to see it.
So basically I have started this thread in the hopes that others might have some experience with Arduinos and could help me with this part of the build. If there aren't any, I guess I will write this as a "How-to" or in a way that others can read through and learn from.
Well, that's it for now.
I am getting back to my Rat Wagon build (http://www.diygokarts.com/vb/showthread.php?t=32790) that will consist of an electric 24v motor to power it with a fake engine up front to complete the "look" of a hot rod/rat rod. Now, we can't have a "hot rod" without the engine sounds of a hot rod, now can we?! (well, we COULD... it just wouldn't be as cool!) It seems that I don't get much done but am always adding to it and making it much more of a project with more difficulty. Ah well, it's in my nature.
Enter in to the project a Arduino Uno R3 microcontroller. I searched to see if anyone else has did anything on here with an Arduino but I couldn't find any so I guess I will touch a bit on what it is, how it works and what I plan to do with it.
Arduino (usually pronounced Ar-dwing-o, but there are other pronunciations) is a company based in Italy that makes an open-sourced micro-controller with various platforms with various options. (From Wiki-pedia) A microcontroller is a small computer (SoC) on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals. Program memory in the form of Ferroelectric RAM, NOR flash or OTP ROM is also often included on chip, as well as a typically small amount of RAM. The platform I decided on for this build is an Arduino Uno R3. The "R3" is just simply "Reversion #3", the third version of the Uno board. The Uno board based on the ATmega328. It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a reset button. The Arduinos have open source libraries written in C programming language.
My plan is to integrate a 10kohm POT into the throttle peddle to supply a 0-5+ volt signal to the Arduino Uno. As the throttle peddle is pushed down the POT will turn from one pole towards the other and supply a voltage between 0 and 5v. The voltage will be read by the microcontroller and depending upon the programming that I write for it, it will output certain functions in direct correlation to the input from the POT. The Arduino will process the information at 16Mhz with the program information that I write. If I do it well enough I hope to add realistic engine sound that rev in correlation to the throttle in "neutral" mode and accelerates in correlation to speed when in "drive" mode. It will have a "starter" at the beginning that sounds like a starter is turning the engine over, a horn when a button is pressed and anything else I come up with between now and then to make it more realistic.
Along with engine sounds the Arduino will also control a servo motor that will control the "throttle linkage" to the carbs for a realistic effect and a small DC motor that will spin the belts and fan in relation to supposed engine RPM. There will also be LED's for the headlights, tail lights, blinkers and whatever else I can come up with if time permits.
I am going to either build or buy a separate circuit to store the engine noise snippets, DAC (Digital to Analog Converter), and amplifier to power the 6.5" speaker that will provide the "engine noise." The speaker will be in a custom ported box tuned to the lowest frequency that the engine sound will "produce". There will be two ports that start in the speaker box but will exit the box, turn and terminate at the back of the go kart, making them look like the exhaust pipes. I will include all of the information on the speaker box and math that I used to get the right air space, port diameter and length and tone, as well as provide the Thiele/Small parameters of the speaker and a small "How-to" section to help others if there are any that want to see it.
So basically I have started this thread in the hopes that others might have some experience with Arduinos and could help me with this part of the build. If there aren't any, I guess I will write this as a "How-to" or in a way that others can read through and learn from.
Well, that's it for now.