Pages: [1] 2   Go Down
Author Topic: Absolute beginner..How do I get started?  (Read 1915 times)
0 Members and 1 Guest are viewing this topic.
Wales
Offline Offline
Newbie
*
Karma: 0
Posts: 28
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
I've had an interest in electronics for many years but have stayed clear of microcontrollers.

The time has come to learn about them as I've got a project in mind that would be better built this way. The project involves taking a few inputs from various sensors and the outputs  will operate a small pump and some shut off valves. Ultimately if all works then I might build a few more controllers for friends.

I realise that it isn't going to be a quick fix and that I'll have quite a bit to learn right from the very basics.

Arduino seems to figure in every Google search so I imagine that it might be the right place for me to start.

Am I in the right place (with Arduino) or are there better starting points for me?
If I manage to learn enough and the prototype works OK then what sort of hardware do I use in future productions?
Is there a step by step guide that will help me out?

Cheers

JonRon
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 308
Posts: 26474
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No, there is no step by step guide, because you haven't told us anything about the sensors.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Cape Town South Africa
Offline Offline
Edison Member
*
Karma: 19
Posts: 1217
A newbie with loads of posts, and still so much to learn !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Welcome to Arduino,  you have to think a bit differently than what we did with electronics, for instance when they talk about pin 1, its not the chips pin 1 , its the digital Input/Output 1 ( which can be a different physical pin on the various types of chips in the Arduino )

Read Nick Gammons sticky    http://arduino.cc/forum/index.php/topic,97455.0.html   to avoid upsetting people.

Buy the board, play around with the examples,  have a look at Tronixstuff , its a great introduction, start with blinking an LED, when you have got way past that you will end up back at LEDs with multiplexed LED cubes etc.

There are a lot of very knowledgable and helpful people on the forum ( and a few "legends in their own minds"  but you will soon pick them out :-)

Before you ask anything, do a search in the forum, it often has been asked before !
Logged

With my mobile phone I can call people and talk to them -  how smart can you get ?

Copenhagen / Denmark
Offline Offline
Edison Member
*
Karma: 6
Posts: 2360
Do it !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

As Boffin1 said, by the board and go find some of the many tutorials.

Almost anything you can imagine has been done, and is documented somewhere on he mighty Internet.

As a beginner one of the hardest things is to know what to search for. But if you have specific sensors you know you are going to use then chance are that someone else has alredy used it and documentde it.
Logged

California
Offline Offline
Sr. Member
****
Karma: 3
Posts: 443
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I'd say arduino will very likely do what you want. Just go pick up an Arduino Uno, breadboard, potentiometer, resistors and leds(all of these are at radioshack if you've got one). If you are familiar with electronics I doubt you will have any trouble at all getting the idea. If you have a really clear idea of what you want you should be able to work it out pretty easily as long as you put effort first into really understanding the arduino with some basic projects.
Logged

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

Hi,

Thanks for your replies.

I came across Arduino whilst looking for a suitable humidity sensor (SHT11) for my project. My plan initially was to build a logic circuit with a few gates etc (yea I know a bit old fashioned) and it was this sensor which got me thinking that microcontrollers are going to be a more versatile and the circuit board less complicated.

A quick internet search revealed that there is an array of microcontrollers out there with differing languages and I really want to find the microcontroller which will do the job and stick with it; learning just the one language!

I'll give it a go, buy an Arduino Uno and experiment....all looks very interesting.

Cheers

JonRon

Logged

Cape Town South Africa
Offline Offline
Edison Member
*
Karma: 19
Posts: 1217
A newbie with loads of posts, and still so much to learn !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You are exactly where I was 2 years ago, after years of building everything with CMOS !

Get stuck in with learning the Arduino, it is unbeleivably satisfying when you get it right, and you dont need a soldering iron to change it if you get it wrong !
« Last Edit: November 19, 2012, 02:30:49 am by Boffin1 » Logged

With my mobile phone I can call people and talk to them -  how smart can you get ?

New Jersey
Offline Offline
Faraday Member
**
Karma: 70
Posts: 3726
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Try searching the forum for examples of your project. If it's an aquarium controller or plant watering system (guessing from the OP), many people have implemented such projects - you should get some hints on where to start. Even if yours is more obscure, those projects will still likely give valuable insights.
Logged

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

Hi and thanks,

Before committing myself I’ve got another question (which I don't think is answered elsewhere):

Without boring you with too many details; the project I have in mind is the circulation (using a pump) of a gas in a sealed environment.

The environment is divided into 4 areas, each can be isolated by a motorised valve (or similar valve). The condition of each valve is influenced by temperature and humidity sensors in each area and also a time duration period.

The pump is switched to a timing schedule and possibly additional sensor inputs.

Is all this doable with an Arduino(s)?

Cheers

JonRon
Logged

Offline Offline
Edison Member
*
Karma: 5
Posts: 1730
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Once you get a hang of programming and the general electronics that will be almost too easy, like they said id suggest following some tutorials and maybe giving yourself some smaller projects, the way I usually tackle a large project is to break it into parts and take them on individually,  then at the end takig what I learned and making the whole program
you will need to learn about relays, transistors, mosfets, resistors, capacitors and ofcourse ohms law and other basics, and probably look around for the best way to control your outputs, once you know exactly what you want it'll just be a matter of searching, reading and doing
Logged

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

Hi,

Thanks.

I'm OK on general electronics...for me this is all about taking that quantum leap into microcontrollers. If as you say this size of project is straight forward then no doubt I would add in some form of display output and a few user input controls...presumably that is also dooable? (after I get the hang of it all, of course!).

Cheers

JonRon

Logged

New Jersey
Offline Offline
Faraday Member
**
Karma: 70
Posts: 3726
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The project sounds eminently suitable for an arduino. The only thing to be careful about is the number of pins you need. If you choose your sensors with care, an Uno would be sufficient, but you'd need to make sure you're using at least some sensors that can share. Measuring temperatures with some DS18B20s is an example - if they cover the range you need. Similarly, common LCD panels require a lot of pins, but there are serial versions that only need two. Then there's external multiplexing hardware, or you can just throw cash at the project and use a Mega.
« Last Edit: November 18, 2012, 05:14:13 pm by wildbill » Logged

Offline Offline
Edison Member
*
Karma: 5
Posts: 1730
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Or some gpio ics, for more output inputs, same with shift registers, and even an extra atmega328p, there's a dozen ways to do things, all a little different in price,speed and fuction, that's where experience comes in handy and proves daunting to beginners,
If you really wanna learn alot just keep reading and being active on this forum zlot of good situations and questionsalways come up, and you can learn from others common mistakes and know more on how to approach a future project
Logged

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

Hi,

Thanks for all the tips and encouragement.

Looks like the journey starts here.

Cheers

JonRon
Logged

Cape Town South Africa
Offline Offline
Edison Member
*
Karma: 19
Posts: 1217
A newbie with loads of posts, and still so much to learn !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Heres an example ( I never learn ) of starting with a simple sketch and adding to it.

I have made a temperature / time LED display for a friend.

I combined the displays  from my scoreboards, the GPS from my syncd clocks, the temp circuit and code from an earlier temp display, and some auto dimming for the new superbright LEDs.

All these things were working sketches, but when I put all the sketches together over the weekend, and connected up the diplays - everything was a mess, the displays were jumbled, the temp display was flickering, and the GPS wasnt locking on.

I wasted the whole day yesterday trying to correct the mess of a sketch, but this morning I got up and started with just a sketch for the displays, and soon sorted that out, then added the freerunning clock and fine tuned that, then added the temp part, and found that I was trying to read and display the temperature every loop, so of course it was flickering with the noise on the analog line !  So I took that down to only measuring just before it toggled over to the temperature display ( alternates with the clock ).

So in an hour , by doing it the right way, I have it ( almost ) working, I just have to sort out the autodimming values.

Some of the experienced guys here can look at a sketch and see trouble ( I can do that with a circuit diagram, but this programming is all new to me )   I had no hope of picking out the bugs in my ductaped concoction of previous sketches !  :-)

Baby steps works best for beginners   !
« Last Edit: November 19, 2012, 02:46:09 am by Boffin1 » Logged

With my mobile phone I can call people and talk to them -  how smart can you get ?

Pages: [1] 2   Go Up
Jump to: