{"id":8483,"date":"2019-08-15T18:49:16","date_gmt":"2019-08-15T17:49:16","guid":{"rendered":"https:\/\/stevepedwards.today\/quad\/Electronics\/?p=8072"},"modified":"2019-08-15T18:49:16","modified_gmt":"2019-08-15T17:49:16","slug":"arduino-basics-1","status":"publish","type":"post","link":"https:\/\/stevepedwards.today\/ElectronicsStuff\/arduino-basics-1\/","title":{"rendered":"Arduino Examples &#8211; Basics Dir 1"},"content":{"rendered":"<p>From <a href=\"https:\/\/www.arduino.cc\/\">https:\/\/www.arduino.cc\/<\/a><br \/>\nARDUINO 1.8.9 IDE zip file<br \/>\nThis example shows DAC info visually and as a serial stream:<br \/>\nRead a potentiometer, print its state out to the Arduino Serial Monitor.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8073 aligncenter\" src=\"https:\/\/stevepedwards.today\/ElectronicsStuff\/wp-content\/uploads\/2019\/08\/schematic.png\" alt=\"\" width=\"503\" height=\"610\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8074 aligncenter\" src=\"https:\/\/stevepedwards.today\/ElectronicsStuff\/wp-content\/uploads\/2019\/08\/layout.png\" alt=\"\" width=\"321\" height=\"372\" \/><\/p>\n<p><a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/AnalogReadSerial\">https:\/\/www.arduino.cc\/en\/Tutorial\/AnalogReadSerial<\/a><\/p>\n<pre class=\"lang:default decode:true  \">\/*\nAnalogReadSerial\nReads an analog input on pin 0, prints the result to the Serial Monitor.\nGraphical representation is available using Serial Plotter (Tools &gt; Serial Plotter menu).\nAttach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.\nThis example code is in the public domain.*\/\n\/\/ the setup routine runs once when you press reset:\nvoid setup() {\n\/\/ initialize serial communication at 9600 bits per second:\nSerial.begin(9600);\n}\n\/\/ the loop routine runs over and over again forever:\nvoid loop() {\n\/\/ read the input on analog pin 0:\nint sensorValue = analogRead(A0);\n\/\/ print out the value you read:\nSerial.println(sensorValue);\ndelay(1); \/\/ delay in between reads for stability\n}<\/pre>\n<p>&nbsp;<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-8077\" src=\"https:\/\/stevepedwards.today\/ElectronicsStuff\/wp-content\/uploads\/2019\/08\/SerPlot-1024x576.png\" alt=\"\" width=\"840\" height=\"473\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-8078\" src=\"https:\/\/stevepedwards.today\/ElectronicsStuff\/wp-content\/uploads\/2019\/08\/serval-1024x576.png\" alt=\"\" width=\"840\" height=\"473\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>From https:\/\/www.arduino.cc\/ ARDUINO 1.8.9 IDE zip file This example shows DAC info visually and as a serial stream: Read a potentiometer, print its state out to the Arduino Serial Monitor. https:\/\/www.arduino.cc\/en\/Tutorial\/AnalogReadSerial \/* AnalogReadSerial Reads an analog input on pin 0, prints the result to the Serial Monitor. Graphical representation is available using Serial Plotter (Tools <a href=\"https:\/\/stevepedwards.today\/ElectronicsStuff\/arduino-basics-1\/\" class=\"more-link\">...<span class=\"screen-reader-text\">  Arduino Examples &#8211; Basics Dir 1<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,2],"tags":[],"class_list":["post-8483","post","type-post","status-publish","format-standard","hentry","category-tech-studies","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/stevepedwards.today\/ElectronicsStuff\/wp-json\/wp\/v2\/posts\/8483","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stevepedwards.today\/ElectronicsStuff\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stevepedwards.today\/ElectronicsStuff\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stevepedwards.today\/ElectronicsStuff\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stevepedwards.today\/ElectronicsStuff\/wp-json\/wp\/v2\/comments?post=8483"}],"version-history":[{"count":0,"href":"https:\/\/stevepedwards.today\/ElectronicsStuff\/wp-json\/wp\/v2\/posts\/8483\/revisions"}],"wp:attachment":[{"href":"https:\/\/stevepedwards.today\/ElectronicsStuff\/wp-json\/wp\/v2\/media?parent=8483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stevepedwards.today\/ElectronicsStuff\/wp-json\/wp\/v2\/categories?post=8483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stevepedwards.today\/ElectronicsStuff\/wp-json\/wp\/v2\/tags?post=8483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}