Hi guys, this is my first time using an Arduino and basically know absolutely nothing about it or the language. So for this school project I've got to demonstrate two components working in a thing I had to design. Basically what would be the easiest way to make the servo turn 90 degrees when I push a momentary switch, and at the same time output the humidity and temperature to a LCD display? Thanks in advance!
Can you provide links to all of your components and post any code you have in tags? Do you have any specific questions?
Sounds like a relatively easy project.
Do you have the components for this?
Sounds like you need
- Arduino
- servo
- LCD
- temp sensor
- humidity sensor
- button
- power supply
Do you have these?
When you do, tackle the code a piece at a time.
Code the button tutorial and confirm that you can use the botton.
Code the servo sweep tutorial and confirm that you can make the servo move.
Find a tutorial or example for your temp sensor and confirm that you can print temps to the serial monitor
Find a tutorial or example for your humidity sensor and confirm that you can print humidity readings to the serial monitor
Find a tutorial or example for your LCD and make sure you can print 'Hello World'.
THEN start combining the functionality one component at a time.
Of course, if you run into problems along the way, come here and ask.
Post your full script using code tags like it says in the 'how to use this forum please read' post at the top of this forum (go read it)
Post a wiring diagram of your project. A pic of a hand drawn diagram is fine.
Good luck!