Go Down

Topic: Learning Programming (Read 146 times) previous topic - next topic

Shootout

Hello

I am trying to lear Arduino programming on my own.  As you can imagine, it's not easy.
 
So;

I am trying to set up a PIR in my backyard that when triggered will transmit an alert to an LCD inside.

I prefer to use ASK, if possible.

I searched the IDE examples and all over the internet for tutorials and examples.   

Can someone point me towards some tutorials or examples for help.  Thanks
 

larryd

Arduino links of interest.

How to use this forum:
https://forum.arduino.cc/index.php?topic=149014.0 

Listing of downloadable 'Arduino PDFs' :
Either Google   >>>- - - - >       arduino filetype: pdf
Or
https://www.google.ca/search?q=arduino+filetype%3A+pdf&rlz=1C9BKJA_enCA739CA739&oq=arduino+filetype%3A+pdf&aqs=chrome..69i57j69i65.1385j0j7&hl=en-US&sourceid=chrome-mobile&ie=UTF-8

Listing of downloadable 'C++ PDFs' :
Either Google   >>>- - - - >       C++ filetype: pdf
Or
https://www.google.ca/search?q=c%2B%2B+filetype%3A+pdf&rlz=1C9BKJA_enCA739CA739&oq=c%2B%2B+filetype%3A+pdf&aqs=chrome..69i57.22790j0j7&hl=en-US&sourceid=chrome-mobile&ie=UTF-8

Arduino cheat sheet:
https://dlnmh9ip6v2uc.cloudfront.net/learn/materials/8/Arduino_Cheat_Sheet.pdf

Troubleshooting common errors:
http://podcast.uctv.tv/webdocuments/steam/Arduino-Troubleshooting.pdf



Watch these:
Arduino programming syntax:
https://m.youtube.com/watch?v=CbJHL_P5RJ8 

Arduino arithmetic operators:
https://m.youtube.com/watch?v=UUx0_s-ElSs   

Arduino control flow:
https://m.youtube.com/watch?v=QpPGGuaGbCA

Arduino data types:
https://m.youtube.com/watch?v=xmZXWMEltEc 


Why MOSFET gate resistors:
https://youtu.be/o0OHGWCZ7B0   



Some things to read

Reading a schematic:
https://learn.sparkfun.com/tutorials/how-to-read-a-schematic

Language Reference:
https://www.arduino.cc/en/Reference/HomePage

Foundations:
https://www.arduino.cc/en/Tutorial/Foundations

How and Why to avoid delay():
http://playground.arduino.cc/Code/AvoidDelay

Demonstration code for several things at the same time.
http://forum.arduino.cc/index.php?topic=223286.0

Multitasking:
Part 1:
https://learn.adafruit.com/multi-tasking-the-arduino-part-1?view=all   

Part 2:
https://learn.adafruit.com/multi-tasking-the-arduino-part-2?view=all   

Part 3:
https://learn.adafruit.com/multi-tasking-the-arduino-part-3?view=all   

Micro Controllers:
https://learn.adafruit.com/mcus-how-do-they-work?view=all   

Useful links:
https://forum.arduino.cc/index.php?topic=384198.0

Arduino programming traps, tips and style guide:
http://www.gammon.com.au/forum/?id=12153

Call for useful programming discussions
https://forum.arduino.cc/index.php?topic=383980.0   

Jeremy Blume:
https://m.youtube.com/playlist?list=PLA567CE235D39FA84

Arduino products:
https://www.arduino.cc/en/Main/Products

Motors/MOSFETs
http://www.gammon.com.au/motors

Switches:
http://www.gammon.com.au/forum/?id=11955

https://www.amazon.ca/Arduino-Cookbook-Recipes-Enhance-Projects/dp/1449313876/ref=sr_1_1?ie=UTF8&qid=1522801721&sr=8-1&keywords=arduino+cookbook   



Share tips you have come across, 500+ posts:
https://forum.arduino.cc/index.php?topic=445951.0 

Images from above:
https://www.google.com/search?q=%E2%80%9CShare+tips+you+have%E2%80%9D+larryD+site:https://forum.arduino.cc&prmd=nmvi&source=lnms&tbm=isch&sa=X&ved=0ahUKEwiJw-zu68ncAhXPGTQIHWCDCNwQ_AUIFCgE&biw=1024&bih=653   

Debug discussion:
https://forum.arduino.cc/index.php?topic=215334.msg1575801#msg1575801   



No technical PMs.
The last thing you did is where you should start looking.

Shootout


DVDdoug

Programming is hard but the Arduino is one of the easiest ways to get started.  It's "different" from almost anything else not everybody can be good at it.    People who are good at math, logic, and puzzles usually make good programmers.

Do you know any electronics?   The Arduino is half-hardware and half-software.

I always say...  The best way to learn anything  is by taking a class.   Books are 2nd best, and the Internet is the hardest way to learn.   The Internet is a great reference, and there's enough information on the Net to learn brain surgery, but most doctors have gone to medical school.  ;)   Most professional programmers and electronics engineers also have college degrees.

That said, I'm pretty sure most Arduino users probably taught themselves.

The problem with most books is that they teach a particular programming language  without teaching the "big picture" concepts of what programming is all about.   Once you've learned one programming language and the basic programming concepts, it's not too hard to pick-up a book or go online to learn another one.

Your project shouldn't be too hard.    Can you run a wire from the PIR or does it need to be wireless?   If you can use a wire, the hardest part is wiring-up the LCD and figuring-out how to use whatever library communicates with it.    Wireless communication will again require a library that you'll have to figure-out, and probably Arduino on both ends.

bluejets

Youtube.......Jeremy Blum
Ralph Bacon
Julian Ilett

Go Up