Week #6 - Journal

Ideation

Tell us about your assignment's idea for this week. Why do you care about this idea? What were you inspired by?

Every one come to visit me says that I had a warm room, Since the weather in the moblie phone or the internet only shows the outside temperature I was intersted to know what is temperature inside my house.

So I am going to use arduino, temperature sensor and LCD to figure out my room temperature specifically.

Tool Chain

Which software/machines/materials did you use this week? Why?

At first i searched on the internet for similar projects and i did find some of them very helpful on Tinkercad.

I started to connect and simulat my idea on TinkerCad to test that every thing going well.

resources :

Tinkercad and code

screen recording of project simulation


Design Process

Explain the design process of your assignment. How did you use the tool/software to design and/or simulate your assignment?

As shown in the previous TinkerCad photo I connected it this sequence :

5V on arduino connected to positive line on the breadboard.

GND on arduino connected to negative line on the breadboard.

GND on LCD connected to negative line on the breadboard.

VCC on LCD connected to positive line on the breadboard.

VO on LCD connected to negative line on the breadboard.

RS on LCD connected to pin 12 on arduino.

RW on LCD connected to negative line on the breadboard.

E on LCD connected to pin 11 on arduino.

DB4 on LCD connected to pin 5 on arduino.

DB5 on LCD connected to pin 4 on arduino.

DB6 on LCD connected to pin 3 on arduino.

DB7 on LCD connected to pin 2 on arduino.

A on LCD connected to positive line on the breadboard.

K on LCD connected to 320 ohm resistor then connected the resistor to nigtive line on the breadboard.

VCC in temp sensor connected to positive line on breadboard.

GND in temp sensor connected to negative line on breadboard.

OUT in temp sensor connected to A1 on arduino.

Then i used the text code that provided in the similar porject in tinkercad and it's work perfectely.

Fabrication/Implementation Process

Explain the fabrication/implementation process of your assignment. How did you use the machine/tool to manufacture or implement the design of your assignment?

unfortunately it ended up with many massively wires connection that I was not comfortable with it at all.

So I did some more search and i did find out that i can connect it by 12C only using SDA and SCL.


SDA (Serial Data) – The line for the master and slave to send and receive data.

SCL (Serial Clock) – The line that carries the clock signal.

what is 12C LCD ?

this type of LCD is ideal for displaying text and numbers, henec the name 'character LCD, the 12C LCD comes with a small add-on circuit mounted on the back of the module, This module features a PCF8574 chip (for 12C communication) and a potentiometer to adjust the LED backlight, The advantage of an 12C LCD is that the wiring is very simple you only need two data pins to control the LCD.

All i need now it's to connect the LCD with the arduino like this :

GND on LCD connected to GND on arduino.

VCC on LCD connected to 5V on arduino.

SDA on LCD connected to A4 on arduino.

SCL on LCD connected to A5 on arduino.

wiring an 12C LCD is a lot easier then connecting it by standard you only need to connect 4 pins instead of 12.

To connect the temp sensor :

VS Connected to pin 2 on arduino.

Vout Connected to A0 on arduino.

GND Connected to GND on arduino.

Now it's the time for some Arduino programing I am excited.

This video helped me a lot to understand the main idea to make my dream come ture :D

At first I need to download LiquidCrystal_12C library and add it to my arduino library so arduino can now undrstand the LCD 12C connection.

Now by using this code i will be able to display the temp on my LCD

Code explainiton :

A0 is input pin for temp sensor.

VCC2 =2 is 5V for LM35 temp sensor.

Iteration = 1000 so the screen will refresh every 1 sec and get the temp average.

LM35_FACTOR = 0.01 it's mean every 10 MA changes the temp will change - or + degree.

Code link

After all it's seems not my lucky day, I believe my temp sensor is broken somehow it's keep giving me a unstable reading like 24C then 30C then 10C and 0C to make sure I connected it as the maker deploma tutorials and I test it with the serial monitor and yes the temp sensor is broken.

Anyway I will add a video to FlipGrid Troubleshooting so any one can help me with it or confirm that the temp sensor is broken.

Community of Learning

Did you ask for feedback? What are the ideas that others have contributed or suggested? What was someone else’s idea that you built upon? How did you help your peers? How did your peers help you?

I used the game kit to cover the LCD and Arduino board, a frind of mine told me that's can be a sellable product of course after we replace the temp sensor with a new one :D

Video

Overcoming Challenges

When you got stuck, what/who did you turn to? At what point did you have to pause to research or learn more before moving on? What are some mistakes, pitfalls, or challenges that others can avoid if they were doing this project?

at some point the screen didn't show anything so I did some search and I find out why.

it's because the 12C LCD address code it was written as 26 but mine was 27

I was not able to find my LCD 12C address on the LCD module so i had to scan it by this code to know what is my LCD address to add it to the code.

Final Project

How can you use the skills and knowledge that you've acquired this week in your final project?

I can now use the arduino and program it , sort of.

WOW!

What is the coolest thing that you've learned this week? What is something that you will never forget from this week?


Weekly Digest [OPTIONAL]

Tell us about any other cool things that you've made this week: Pre-activity, examples, exercises, or any mini-projects.


Assignment Design Files