Your SlideShare is downloading. ×
Simply arduino
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Simply arduino

2,843
views

Published on

Published in: Business, Technology

0 Comments
5 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,843
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
0
Comments
0
Likes
5
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. SimplifyArduinoArduino
  • 2. Simplify Arduino1
  • 3. Simplify Arduino2
  • 4. Simplify Arduino3GPL V3abdallah.reload92@gmail.com
  • 5. Simplify Arduino4Arduino IDEOscilloscopeSignal Generator
  • 6. Simplify Arduino5MakerBot 3D-PrinterExamplesProjectsPDFFoxit PDFTabletIpadGood Reader
  • 7. Simplify Arduino6Introduction to Arduino & microcontrollers
  • 8. Simplify Arduino7Integrated Circuits (IC)NanoMeterIntegrated CircuitsMicro Controllers
  • 9. Simplify Arduino8ArduinoOpen HardwareArduino CArduino IDE: Integrated DevelopmentEnvironmentSource CodesArduinoBoardsArduino IDEArduino CMikro C
  • 10. Simplify Arduino9MicroControllersPICCMATLABJavaMATLABJavaVB.NET
  • 11. Simplify Arduino10MATLABMATLABMATLABArduino Boards
  • 12. Simplify Arduino11ArduinoUNO, Arduino Mega, Arduino Nano, ArduinoMini, Arduino Lily, ArduinoDemulive, BoarduinoSensorsArduino UnoArduino UnoATmega328
  • 13. Simplify Arduino12Digital In/outPWMPulse-Width modulationAnalog Inputs & OutputsMHzUSBICSPheaderUSBPower upUSBACDCGndVin
  • 14. Simplify Arduino13-Pin 5Vvoltage regulatorPowerInputs/OutputsVinVVinUSBVGND
  • 15. Simplify Arduino14MicroprocessorATmega328Kilo ByteobootloaderArduino c languageoSRAMoFlash DiskoEEPROMHard DiskATmega 328pInput & Output Pins(I/O)
  • 16. Simplify Arduino15(Digital PinsAnalogA0A5:
  • 17. Simplify Arduino16
  • 18. Simplify Arduino17
  • 19. Simplify Arduino18Hardware& Tools
  • 20. Simplify Arduino19Arduino UNOArduino Uno V.3ATmega328USB printer cable (1 Meter)(Breadboard)HalfSized Breadboard
  • 21. Simplify Arduino20Colored LedsResistorsResistor 560 Ohm (x5)Resistor 10 Killo-Ohm (x5AVO Meter (multi-meter device)Wires
  • 22. Simplify Arduino21Cat5breadboard
  • 23. Simplify Arduino22electronics.com-http://www.futhttp://egyrobots.comshop.com-e-http://www.ramRAM ElectronicsFutureElectronicshttp://www.buyincoins.com
  • 24. Simplify Arduino23Arduino Uno
  • 25. Simplify Arduino24Softwares
  • 26. Simplify Arduino25Arduino (IDE)Arduino IDEArduino CArduino C
  • 27. Simplify Arduino26Open Source][Ubuntuhttp://www.simplyubuntu.com/Arduino IDEWindows, Linux, MAChttp://arduino.cc/hu/Main/Software
  • 28. Simplify Arduino277ziparduino.exeUbuntuSoftwarecenterArduino IDEInstallfedoraOpen SUSE
  • 29. Simplify Arduino28HardwareArduino IDEUSBFound ArduinoUno Board
  • 30. Simplify Arduino29
  • 31. Simplify Arduino30
  • 32. Simplify Arduino31ToolsBoardArduino UnoNewFile
  • 33. Simplify Arduino32New
  • 34. Simplify Arduino33ExamplesFile
  • 35. Simplify Arduino34Lets get started
  • 36. Simplify Arduino35Example 1: Blinking led
  • 37. Simplify Arduino36Arduino UnoBreadboardBreadboard100%Breadboardpin-header
  • 38. Simplify Arduino37Arduino IDEBreadboardPin-Header
  • 39. Simplify Arduino38// Example 01 : Blinking LEDconstint LED = 13;void setup(){pinMode(LED, OUTPUT);}voidloop(){digitalWrite(LED, HIGH);delay(1000);digitalWrite(LED, LOW);delay(1000);}
  • 40. Simplify Arduino39VerifyIDEUploadledsTx/Rxconst int LED = 13;constantLED
  • 41. Simplify Arduino40(Input/Output Pins)LEDLEDVoid setup ( ){pinMode(LED,OUTPUT);}Digital PinsPinPinsetup ( );pinMode(pin number, state)PinPinINPUTOUPUTcapital}writeyour configurations here{( )setuppinLEDPin
  • 42. Simplify Arduino41pinpinvoidsetup ( ){pinMode(11,OUTPUT);pinMode(12,OUTPUT);pinMode(13,OUTPUT);pinMode(2,INPUT);}void loop(){digitalWrite(LED, HIGH);delay(1000);digitalWrite(LED, LOW);delay(1000);(;)verifyLEDLED
  • 43. Simplify Arduino42}{your program}loop ( )void;digitalWrite(LED,HIGH)HIGH = 5 VoltLOW = 0HIGHLOWdelay (1000);digitalWrite(LED, HIGH);delay(1000);HIGHLEDmillisecondNano-secondMicro-SecondLowing led// Example 1 BlinkcommentsArduino IDE"//"// Hello Im Abdallah// Im Using comments
  • 44. Simplify Arduino43// Arduino is Sooooo funny/* Hello Im Abdallah and I Love Arduino, and youare going to learnThe best microcontroller system inthe world (^_^)*////**/Push button
  • 45. Simplify Arduino44push buttonArduinounoBreadboardPush buttonLed 10 mm
  • 46. Simplify Arduino455vDigital inputHIGHLOWHIGHArduino IDEconstintledPin = 13;constintbuttonPin = ;intval;voidsetup(){pinMode(ledPin, OUTPUT);pinMode(buttonPin, INPUT);
  • 47. Simplify Arduino46}voidloop(){val = digitalRead(buttonPin);if(val == HIGH){digitalWrite(LED, HIGH);delay(1000);digitalWrite(LED, LOW);delay(1000);}else{digitalWrite(ledPin, LOW); } }Verify
  • 48. Simplify Arduino47UploadledPinPin 13buttonPinvalpin 13ledPin2pinHIGH or LOWval =digitalRead(buttunPin);pin2valdigitalRead( )HIGHLOWif (val == HIGH){digitalWrite(LED, HIGH);delay(1000);digitalWrite(LED, LOW);delay(1000);intledPin = 13;intbuttunPin = ;intval = 0;void setup{pinMode(ledPin, OUTPUT);pinMode(inPin, INPUT);}
  • 49. Simplify Arduino48}else {digitalWrite(ledPin, LOW); })if….else(ifvalHIGHHIGH
  • 50. Simplify Arduino49Push ButtonONOFF
  • 51. Simplify Arduino50ArduinounoBreadboardLed 5 mmpush buttonbreadboardPin-Headers
  • 52. Simplify Arduino51Arduino IDEconstintledPin= 13;
  • 53. Simplify Arduino52constint inputPin1 = 2;constint inputPin2 = 3;void setup {pinMode(ledPin, OUTPUT);pinMode(inputPin1, INPUT);pinMode(inputPin2, INPUT);}void loop {if (digitalRead(inputPin1) == HIGH){digitalWrite(ledPin, LOW); }else if (digitalRead(inputPin2) == HIGH)
  • 54. Simplify Arduino53{digitalWrite(ledPin, HIGH); }}ifelseifelseifIf (you like science) {you should read books}else if (you like sport) {you should play football}else if (you like art) { you should take art lessons}else { you should search for a hobby to do in your summer}
  • 55. Simplify Arduino54constintledPin= 13;constint inputPin1 = 2;constint inputPin2 = 3;void setup{pinMode(ledPin, OUTPUT);pinMode(inputPin1, INPUT);pinMode(inputPin2, INPUT);}void loop{if (digitalRead(inputPin1) == HIGH){digitalWrite(ledPin, HIGH);delay(300);digitalWrite(ledPin, LOW);delay(300);}
  • 56. Simplify Arduino55else if (digitalRead(inputPin2) == HIGH{digitalWrite(ledPin, HIGH);delay(100);digitalWrite(ledPin, LOW);delay(100);}}void setup ( )void loop ( )int name = value;constname = value;const intexample:led = 13;pinINPUT or OUTPUTpinMode (pinnumber, State);example1:pinMode(11,INPUT)
  • 57. Simplify Arduino56;example2:pinMode(led,OUTPUT);pinHIGH (1) or LOW(0)digitalWrite (pinnumber, State);example:digitalWrite(13,HIGH);pinHIGHLOWdigitalRead (pinnumber);digitalReaexample:d(4);delay (time);example1:delay(100);example2:delay(1000);if (the condition){…..what to do}else if (anothercondition){…what to do}
  • 58. Simplify Arduino57else (lastcondition){….what to do}int led = 13;Integersfloat sensor = 12.5;Floatchar name= hello;characterlong variable = 99999999;longbyte number= 44;byte
  • 59. Simplify Arduino58http://www.arduino.cc/en/Reference/VariableDeclaration
  • 60. Simplify Arduino59
  • 61. Simplify Arduino60
  • 62. Simplify Arduino61Analog Inputs/Outputs and Sensors
  • 63. Simplify Arduino62(1) HIGH(0) LOWAnalog Signals(sensorPhoto-ResistorAVO-meterAtmega 328-pArduino Uno
  • 64. Simplify Arduino63A0A5TMP36LM350.1
  • 65. Simplify Arduino64TMP36, TMP35, LM35---GND
  • 66. Simplify Arduino65-AAA--AVOMeter-TMP35, TMP36, LM 35AAA1.5AVO
  • 67. Simplify Arduino66AVO meter0.76
  • 68. Simplify Arduino67Potentiometeranaloginput
  • 69. Simplify Arduino68Arduino UnoBreadboardled 5mmA0
  • 70. Simplify Arduino69constintsensorPin = A0;
  • 71. Simplify Arduino70constintledPin = 13;intsensorValue;void setup{pinMode(ledPin, OUTPUT);}void loop}sensorValue = analogRead(sensorPin);digitalWrite(ledPin, HIGH);delay(sensorValue);digitalWrite(ledPin, LOW);delay(sensorValue);}
  • 72. Simplify Arduino71)analogRead(pin numberAnalog to digital convertingA0sensorVlauesensorValue = analogRead(sensorPin ;blinking ledA0light sensor
  • 73. Simplify Arduino72Photo resistor as light sensor
  • 74. Simplify Arduino735Arduino UnoBreadboardled 5mm
  • 75. Simplify Arduino74
  • 76. Simplify Arduino75constintlightPin = A0;constintledPin = 9;intlightLevel;void setup(){pinMode(ledPin, OUTPUT);}void loop(){lightLevel = analogRead(lightPin);lightLevel = map(lightLevel, 0, 900, 0, 255);lightLevel = constrain(lightLevel, 0, 255);analogWrite(ledPin, lightLevel);
  • 77. Simplify Arduino76}analogWrite (pin number, value);analog OutputPulse-Width modulation~PWM0255255 = 5 volt128 = 2.5 volt0=0 volt
  • 78. Simplify Arduino77PWMPWM
  • 79. Simplify Arduino78PWMconstintledPin = 11;inti = 0;void setup(){pinMode(ledPin, OUTPUT);}void loop(){for (i = 0; i< 255; i++){analogWrite(ledPin, i);delay(10);}for (i = 255; i> 0; i--){analogWrite(ledPin, i);delay(10);}
  • 80. Simplify Arduino79}
  • 81. Simplify Arduino80for (i =0;i< 10;i++)loopcountersfor (i=0; i<255; i++) {what to do here}255iianalogWrite(ledPin,i)i255iii
  • 82. Simplify Arduino81Computer interfacing with Arduino
  • 83. Simplify Arduino82lilypad, minicomputer interfaceUSBFTDI interfaceserial interfaceLiliypad
  • 84. Simplify Arduino83
  • 85. Simplify Arduino84Arduino UnoBreadboardTMP 36LM35USB
  • 86. Simplify Arduino85
  • 87. Simplify Arduino86constintsensorPin = A0;int reading;float voltage;float temperatureC;void setup( ){ Serial.begin(9600); }void loop ( ){reading = analogRead(sensorPin);voltage = reading * 5.0/1024;Serial.print(voltage);Serial.println(" volts");temperatureC = (voltage - 0.5) * 100 ;Serial.println("Temperature is: ");
  • 88. Simplify Arduino87Serial.print(temperatureC);Serial.println(" degrees C");delay(1000);}
  • 89. Simplify Arduino88SerialMonitor:
  • 90. Simplify Arduino89Tx-Serial.begin(9600);USB
  • 91. Simplify Arduino90voltagetemperatureCfloatint0.1floatreading = analogRead(sensorPin);readingsesnorPinA0voltage = reading * 5/1024;
  • 92. Simplify Arduino91Serial.print(voltage);Serial Monitor("voltage");lnSerial.printvoltagetemperatureC = (voltage - 0.5) * 100;CelsiusSerial.printSerial.print(temperatureC);Serial.println(" degrees C ");delay(1000);
  • 93. Simplify Arduino92led
  • 94. Simplify Arduino93constintphotocellPin = A0;intphotocellReading;void setup(void){ Serial.begin(9600); }void loop(void){photocellReading = analogRead(photocellPin);Serial.print("Analog reading = ");Serial.print(photocellReading);if (photocellReading< 10) { Serial.println(" - Dark");}else if (photocellReading< 200) { Serial.println(" - Dim");}else if (photocellReading< 500) {Serial.println(" - Light"); }else if (photocellReading< 800) { Serial.println(" - Bright"); }
  • 95. Simplify Arduino94else {Serial.println(" - Very bright"); }delay(1000);}Serial
  • 96. Simplify Arduino95Monitor
  • 97. Simplify Arduino96oooDimDarkLightBright Light
  • 98. Simplify Arduino97
  • 99. Simplify Arduino98Arduino Unoled 5mmUSBSerial MonitorArduino IDEconstintledPin=13;int value;void setup ()
  • 100. Simplify Arduino99{Serial.begin(9600);pinMode(ledPin,OUTPUT);}void loop (){value = Serial.read();if (value == 1) {digitalWrite(ledPin,HIGH);}else if (value == 0) {digitalWrite(ledPin,LOW);}}serial Monitor1Send
  • 101. Simplify Arduino100
  • 102. Simplify Arduino101Serial.read( );USBvalue=USBvalueif.. else ifvalue == 1value == 0Serial communicationhttp://arduino.cc/en/Reference/serial
  • 103. Simplify Arduino102Arduino ShieldsArduinounoArduino Mega
  • 104. Simplify Arduino103PCIMotherboardnetwork interface cardEthernetArduino Ethernet ShieldCAT5
  • 105. Simplify Arduino104Xbee ShieldEthernetShieldWireless
  • 106. Simplify Arduino105Arduino Motor ShieldDC Motor, Servo Motors,Stepper MotorsRobotsCNC
  • 107. Simplify Arduino106Arduino colored Touch screenlcdhttp://shieldlist.org