Pages: [1]   Go Down
Author Topic: Complete novice newbie that need help  (Read 225 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi All Ive just joined, I didnt even know that Arduion existed untill someone told me to try it instead of a couple of 555 chips. I can solder and do know what 90% of electronic components do but as for programming Ive got no clue so Im here to see if you guys can help me out.
I have got here oil soaked wick that has nichrome wire wrapped round it, the idea is to heat the wick just enough for the oil to smoke.
What I need is some sort of control unit that will have a switch off time after 5 mins and when its on a 90% duty cycle, I know the heater wire will have to have a relay as it will draw aprox 12amp at warm up and then drop down to 7 amps, this will all be run on a 12 volt supply
Now the main question, is this possible with Arduino and if so where do I start

I hope I have posted in the correct section, if not sorry and please move me

Thanks in advance

« Last Edit: March 21, 2013, 03:07:12 pm by somkey » Logged

Offline Offline
Edison Member
*
Karma: 22
Posts: 1160
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In either case, you'll need a relay or a MOSFET (or something) to handle the voltage & current.    A mechanical relay probably isn't a good idea, assuming that your 95% duty-cycle switches rapidly.  A mechanical relay will also generally need a transistor or MOSFET to supply the coil current.   On the other hand, solid state relays are very easy to use.   Just make sure to get a solid-state relay rated for DC (assuming your heating element is running off DC) and also rated for 12 amps or more.   A machanical relay will work with AC or DC, but solid state relays are made specifically for one or the other.

Doing it in software is probably eaiser than hardware (555s) and it's a LOT easier to experiment with different timer settings, but a programmable microcontroller and software/firmware is actually overkill.

Quote
...but as for programming Ive got no clue so Im here to see if you guys can help me out.
Something like this is a good way to "dip your toes" into programming.  The Blink Example will get you started.    You'll just have to change the delay time (5 min = 300,000 milliseconds), add a couple of more steps, and another loop in order to get your initial 5 minute time-delay followed by loop with a 90% duty cycle. 

I suggest you review the Language Reference to get an idea of what your program can do.    For example, there are 4 different ways to make a loop.

Also take a look at the Blink Without Delay Example.   In your application, delay() is OK.   But, delay() makes the CPU pause and do nothing.    In most programs, that's a bad idea.

The most important concepts in programming are loops and conditional branching. (if-statements, etc).  If-statements are how computers "make decisions".

It's pretty easy to get started programming the Arduino.  But in general, programming is NOT easy.  The most important thing for a beginner is to write/change only one or two lines of code at a time.  Then, test-compile and test-run your program.   Compliers are VERY picky, and sometimes one small error can cause the compiler to report several errors.  Or the complier can be wrong wien it tells you where teh error is.     The compiler doesn't really know what's wrong, and if you've only added one line, at least you'll know where the problem is.

And of course, sometimes there are things that make perfect sense to the complier, so it won't report an error, but your program doesn't do what you expect.  If you get a bug like that and you can't figure-out what's going-on the Serial Monitor can also be helpful.   You can send-out variable values, or messages like "looping now", etc., to your computer to get some hints about what your program is really doing.   

Sometimes, your program won't make sense (to you or to the compiler) with one line added.  So sometimes, you'll have to write 2 or 3 lines at a time.   It also usually doesn't make sense if you just start at the top and work down...   It takes some experience to learn how to develop & "build up" your program in a logical sequence. 


Professional programmers write & test code one small part a time too, but they might write several lines or a small function before testing. 
« Last Edit: March 21, 2013, 04:28:17 pm by DVDdoug » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the info its very much appreciated, when you say:

 "a programmable microcontroller and software/firmware is actually overkill"

 would I be better off using a 555 for this one off project ?

Thanks Again

Logged

Pages: [1]   Go Up
Jump to: