Posts

Showing posts from December, 2021

week 7 in retrospective

 What was the build that you are most proud of and why? Dice machine, it helped me visualize patterns that can transmit messages. Great thing! I really enjoyed just working with patterns and how simple it is to use the digitalwrite.  ·         Go back to your first week and read each week's submission with an eye for personal growth. Where were you when you started and where did you end up? for me the growth was as a teacher of new concepts. I was too overwhelmed with explaining myself instead of doing it and working backwards trimming the message and get motivated by deconstructing then constructing.  ·         What did you learn that you didn't know before? How to explain this type of concepts and visualize code as a moving element. Everything is a loop if you really want to think about it that way. I was aware of them but arduino helped me see different ways how that can work. Also the float function and converting form...

Arduino Challenge Week 6

Image
 For my challenge I decided to work with a motor and a thermometer. This way I could build a fan that can turn on whenever it hits a certain temperature.  1. thermometer read and spits out temperature on the screen 2. motor read temperature and either turns on or off 3. found great amount of trouble but the "If, and Else If" statements  saved the date!  const int temperaturePin = 0; const int motorPin = 9;  void setup() {       Serial.begin(9600);   pinMode(motorPin, OUTPUT);    } void loop() {   float voltage, degreesC, degreesF;   voltage = getVoltage(temperaturePin);   degreesC = (voltage - 0.5) * 100.0;   degreesF = degreesC * (9.0/5.0) + 32.0;   //printout   Serial.print("voltage: ");   Serial.print(voltage);   Serial.print("  deg C: ");   Serial.print(degreesC);   Serial.print("  deg F: ");   Serial.println(degreesF);   if (degreesF > 77){     d...

Week 5 Adventure Creations .. temperatures and leds .. goooooo!!

Image
For my solo project I decided to use the thermometer and the led to produce a thermostat light coded.  Here are the codes that I used and THE "IF" argument helped a lot.  1. problem that I found. When you run the thermometer on the same ground you will mess with the reading.  Here is the video explaining that what I saw.  Pulling the ground fixed the problem.  USING THE IF STATEMENT solved the issue:  I found out that you can use an if statement and and else statement once on a float but then you must repeat it.    Conclusion:  the if statement is pretty useful if you know its limitations. It is also very repetitive and you can use it to create statements that can cancel and then start another statement. In my project I chose to turn a light on and off by a reading from the thermometer. That was neat. I can see how you can have simple green, yellow and blue light indicators on thermometers and other types of readings.  Even on voltage wh...