View Single Post
Old 11-05-2017, 06:18 PM   #19
biggy238
 
biggy238's Avatar

Name: biggy238
Title: Too Much Time
Status: Not Here
Join Date: Aug 2008
Location: Just North of Wrong
Member`s Gallery
Posts: 10,821
Arduino - Getting Started

For the creepers.

You can read from there about what Arduino is, how many flavors there are now.

Short synopsis, It is a micro-processor with a physical format and programming language that is geared toward new users. It typically is used as a stepping point for non-production oriented people to bring their ideas to life.
The best Idea I've seen yet is an arduino powered temperature based shower control to run their teenage daughter out of the shower before all of the hot water is gone.

Arduino requires software on your laptop called an IDE (Integrated Development Environment?)
This allows a human to write the code required for the microprocessor to do what you want it to do.
This code is called a Sketch.
Code:
/*
  Blink

  Turns an LED on for one second, then off for one second, repeatedly.

  Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
  it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
  the correct LED pin independent of which board is used.
  If you want to know what pin the on-board LED is connected to on your Arduino
  model, check the Technical Specs of your board at:
  https://www.arduino.cc/en/Main/Products

  modified 8 May 2014
  by Scott Fitzgerald
  modified 2 Sep 2016
  by Arturo Guadalupi
  modified 8 Sep 2016
  by Colby Newman

  This example code is in the public domain.

  http://www.arduino.cc/en/Tutorial/Blink
*/

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}
The above example is a basic cornerstone of the Arduino. The boards have LED's built in. You are simply telling one of them to flash ON/OFF (Voltage HIGH, Voltage LOW)

You can Youtube for days. Check out the shift lights and speeduino in particular.

The thing to keep in mind here, you aren't typically going to be able to beat the fit, finish and quality of an existing product that does what you are trying to do. That means one of two things, either you are trying to add features that those products don't offer, or you are mentally deficient.

I'm going to go out on a limb and lump us into the latter half.
__________________
Check out @bdmaximusworx

05.5 Campanella White TDi Jetta 5spd 45.5MPG
-Little Sexy
'10 Silver F250 CCLB 4X4 6.4L cummins Swapped
Insta @trash.panda250
  Reply With Quote