Arduino in C

Share links to interesting articles/tutorials/PDF's.
Forum rules
- Do not post links to stolen material. Doing so will result in a warning or ban.
- Do not double post already submitted links. They will be deleted.
- Posting links to your personal uploads (such as Dropbox) will first need to be approved by a moderator.
- Match post titles to the topic of the submission. (ex: 'C++ for Beginners')
- Requests for links are accepted.
If you wish to write your own article, submit it here: https://www.hackthissite.org/submit/article

Arduino in C

Post by RatkinHHK on Sat Dec 27, 2014 4:15 pm
([msg=86042]see Arduino in C[/msg])

As the title vaguely suggests, this is a pretty comprehensive C tutorial for programming an Arduino.
http://www.lakos.fs.uni-lj.si/images/Predmeti/MK/2014/C%20Programming%20for%20Arduino.pdf

And since everyone seems to have a Raspberry Pi, but no one mentioned Arduino, let's make this the Arduino thread.
I am looking for ideas to implement, and I am open to suggestions. My current project is an LED strip at the windshield of my car, which changes its color Bright Blue to Red Hot depending on the acceleration. I might add more functions along the way.
"You have enemies? Good. That means you've stood up for something, sometime in your life." --- Winston Churchill
User avatar
RatkinHHK
Experienced User
Experienced User
 
Posts: 72
Joined: Tue Nov 11, 2014 6:06 pm
Blog: View Blog (0)


Re: Arduino in C

Post by mShred on Sun Dec 28, 2014 5:35 pm
([msg=86070]see Re: Arduino in C[/msg])

Shit bro. You ain't need any kind of microcontroller to do that.
(Coming from a guy who works with electronics/components/etc). I don't expect you to be all knowing in electroncis because you're interested in arduino, but I do think that people should at least somewhat learn electronics before making the leap to arduino. If your project is to build a circuit to turn an LED on after you hit a certain acceleration point, then that's too easy WITHOUT an arduino. A couple ideas come to mind. But the easiest would probably just be some sort of tilt switch (maybe a mercury switch) on the gas pedal. Too easy man. But if you want to be high speed, you can hook a circuit up to your car's electronic shindig (same place you would be for the arduino). People always using microcontrollers to do simple tasks.
That said, tis still good practice. So good on you for that. Just my two cents.
User avatar
mShred
Addict
Addict
 
Posts: 1899
Joined: Tue Jun 22, 2010 4:22 pm
Blog: View Blog (2)


Re: Arduino in C

Post by RatkinHHK on Sun Dec 28, 2014 6:39 pm
([msg=86073]see Re: Arduino in C[/msg])

Actually I want a color depending on the acceleration. I do not want it on after a certain speed. I want a certain, dim color for constant speed. And as I accelerate, depending on how fast I am accelerating, the color shifts through a gradient of colors, eventually reaching a bright blue at maximum acceleration rate. Not talking about how deep I am pushing the pedal, but about how fast is the car accelerating. Same for negative acceleration, except it would go towards red.

I might also make it remember most of what it is reading from the acceleration sensor, to make some sort of evaluation of how fluent the ride was, to have a general idea of how good a driver I am.
"You have enemies? Good. That means you've stood up for something, sometime in your life." --- Winston Churchill
User avatar
RatkinHHK
Experienced User
Experienced User
 
Posts: 72
Joined: Tue Nov 11, 2014 6:06 pm
Blog: View Blog (0)


Re: Arduino in C

Post by mShred on Wed Dec 31, 2014 8:48 pm
([msg=86103]see Re: Arduino in C[/msg])

I see...
User avatar
mShred
Addict
Addict
 
Posts: 1899
Joined: Tue Jun 22, 2010 4:22 pm
Blog: View Blog (2)


Re: Arduino in C

Post by QtDevl on Thu Jan 01, 2015 8:25 am
([msg=86107]see Re: Arduino in C[/msg])

I don't know what car you've got, but you might like this project http://openxcplatform.com/vehicle-interface/hardware.html, there are some ready made "dongles" that connect to the diagnostic port of the vehicle ( for supported vehicles ), or you can make one yourself. If your car has an OBD connector, you're pretty much set.
With this you'll have A LOT more information available to you.
Github repo: https://github.com/openxc
interesting repo to look at: 1)http://petemills.blogspot.it/2014/07/blueshift-openxc-led-tachometer.html
2)http://openxcplatform.com/projects/shift-knob.html
If freedom is outlawed, only outlaws will have freedom...
QtDevl
New User
New User
 
Posts: 40
Joined: Sat May 17, 2008 3:50 pm
Location: my own world
Blog: View Blog (0)



Return to PDF's and Articles

Who is online

Users browsing this forum: No registered users and 0 guests