EpicMansDad007 Apps
Potentiometer App for Arduino 1.0
I created this App to be able to connect to anArduino via wireless Bluetooth. The user can then receive data froma potentiometer connected to the Arduino. This is designed to beused in the classroom to show students 1) how to use basicelectronic devices and sensors, 2) an introduction to coding, and3) to collect scientific data for statistical analysisYou will need an Arduino, jumper wires, an LED, a potentiometer,and an HC-06 bluetooth device.The code can be found here:#include#include#includeconst int analogInPin = A6;const int analogOutPin = 9;int sensorValue = 0;int outputValue = 0;int outPinGreen = 10;int outPinBlue = 11;SoftwareSerial BT(1, 0); //TX, RX respectivelyvoid setup() {Serial.begin(9600);pinMode(outPinGreen, OUTPUT);pinMode(outPinBlue, OUTPUT);// BT.begin(9600);}void loop() {// while (BT.available()){sensorValue = analogRead(analogInPin);outputValue = map(sensorValue, 0, 1023, 0, 255);analogWrite(analogOutPin, outputValue);Serial.print(" " );Serial.println(sensorValue);digitalWrite(outPinGreen, HIGH);digitalWrite(outPinBlue, HIGH);delay(250);}}
Control RGB LED for Arduino 1.0
This app used in combination with anArduinoallows the user to turn on and off an RGB LED. It isdesigned to beused by teachers who wish to give students anintroduction to basicelectronics and computer coding.You will need an Arduino, jumper wires, an RGB LED, and anHC-06bluetooth device.The code can be found here:#includeint outPinRed = 9;int outPinGreen = 10;int outPinBlue = 11;SoftwareSerial BT(1, 0); //TX, RX respectivelyString color;void setup() {BT.begin(9600);pinMode(outPinRed, OUTPUT); //REDpinMode(outPinGreen, OUTPUT); //GREENpinMode(outPinBlue, OUTPUT); //BLUE}void loop() {while (BT.available()) { //check to see if there is anavailableportdelay(10); // delay added to make things stablechar c = BT.read(); //conduct a serial readcolor += c ; //build the string "blue, red, and green"}if (color.length() > 0) {if (color == "red"){digitalWrite(outPinRed, HIGH);digitalWrite(outPinGreen, LOW);digitalWrite(outPinBlue, LOW);delay(20);}else if (color == "green"){digitalWrite(outPinRed, LOW);digitalWrite(outPinGreen, HIGH);digitalWrite(outPinBlue, LOW);delay(20);}else if (color == "blue"){digitalWrite(outPinRed, LOW);digitalWrite(outPinGreen, LOW);digitalWrite(outPinBlue, HIGH);delay(20);}else if (color == "stop"){digitalWrite(outPinRed, HIGH);digitalWrite(outPinGreen, HIGH);digitalWrite(outPinBlue, HIGH);delay(500);digitalWrite(outPinRed, LOW);digitalWrite(outPinGreen, LOW);digitalWrite(outPinBlue, LOW);delay(500);digitalWrite(outPinRed, HIGH);digitalWrite(outPinGreen, HIGH);digitalWrite(outPinBlue, HIGH);delay(500);digitalWrite(outPinRed, LOW);digitalWrite(outPinGreen, LOW);digitalWrite(outPinBlue, LOW);delay(500);digitalWrite(outPinRed, HIGH);digitalWrite(outPinGreen, HIGH);digitalWrite(outPinBlue, HIGH);delay(500);digitalWrite(outPinRed, LOW);digitalWrite(outPinGreen, LOW);digitalWrite(outPinBlue, LOW);delay(500);}else if (color == "fader"){analogWrite(outPinRed, random(0,255));analogWrite(outPinGreen, random(0,255));analogWrite(outPinBlue, random(0,255));delay(250);}color = ""; //Reset the variable}}
Temp/Humidity App for Arduino 1.0
I created this App to be able to connect toanArduino via wireless Bluetooth. The user can thenreceivetemperature and humidity data from the Arduino. This isdesigned tobe used in the classroom to show students 1) how to usebasicelectronic devices and sensors, 2) an introduction to coding,and3) to collect scientific data for statistical analysis.I hope to upload a video tutorial shortly to enable you to setupthe Arduino and breadboard along with the sensors andothercomponents you will need to do this project.The code for the Arduino is as follows:#include "DHT.h"#include#define DHTPIN 2#define DHTTYPE DHT22DHT dht(DHTPIN, DHTTYPE);const int analogReadPin = 2;int outPinRed = 9;int outPinGreen = 10;int outPinBlue = 11;int temperatureValue = 0;SoftwareSerial BT(1, 0); //TX, RX respectivelyvoid setup() {Serial.begin(9600);dht.begin();pinMode(outPinRed, OUTPUT);pinMode(outPinGreen, OUTPUT);pinMode(outPinBlue, OUTPUT);}// BT.begin(9600);void loop() {// while (BT.available()){digitalWrite(outPinRed, LOW);digitalWrite(outPinGreen, HIGH);digitalWrite(outPinBlue, LOW);float h = dht.readHumidity();float t = dht.readTemperature();float f = dht.readTemperature(true);if (isnan(t) || isnan(h) || isnan(f)){Serial.println("Failed to read from DHT");digitalWrite(outPinRed, HIGH);digitalWrite(outPinGreen, LOW);digitalWrite(outPinBlue, LOW);return;}digitalWrite(outPinRed, LOW);digitalWrite(outPinGreen, LOW);digitalWrite(outPinBlue, HIGH);temperatureValue = ((t * 9) / 5 + 32);analogWrite(analogReadPin, h);analogWrite(analogReadPin, temperatureValue);Serial.print("Humidity = ");Serial.print(h);Serial.println(" %");Serial.print("Temp = ");Serial.print(temperatureValue);Serial.println(" F");}delay(1000);}
Planet Pluto Project 1.1
This app was created to provideinformationabout our solar system. Recently, Pluto had beendowngraded fromplanet to "dwarf planet" status. You will get anopportunity tomake your voice heard and vote whether Pluto shouldbe given backfull planet status. I am 8 years old and created thisapp using MITApp Inventor 2.