Back to Blog
Mcwhorter arduino while loop7/19/2023 But here is the LCD: you can see that VSS is pin 1 and that should go to ground. Your v 0 is hooked to the pot pin and you will be able to to get it to work using this table and if you are a more visual person, you might want to look at this, and this will show it to you as well. Agree on your VDD is hooked to five volts. It needs to be hooked to ground and wherever VDD is, it needs to be hooked to five volts, and so, if you don’t have this pin layout, it doesn’t matter just make sure that your VSS, whichever pin that is, is hooked. Maybe VSS is somewhere else, but the key thing is wherever VSS is. If you have a different LCD, then you need to look at the spec sheet or the instructions that came with it and maybe for yours, 10 one is not VSS. Okay, the upper left pin is, pin one, so this is pin one pin to pin 3 up to pin sixteen pin 1 is VSS. The first thing to understand is how the pins are numbered and on these like this, there are sixteen pins and if you have the one from the smartphone inventor kit, the when you have it oriented like I have it oriented down here. Wired up and I’ve got mine, wired up and I’ll help you get your ears wired up. You know same LCD as I am, and then it’ll be a whole lot easier and the next thing that we got to do is we got to get this thing. Okay, it’s a good start, hopefully you’re using the same on. This is one that, as I work with students that it seems, like students, have a tendency to make a mistake in here and get frustrated and you just got a slow day on and you got to check your work. You know sort of one person looking at the schematic and the other person checking it, and I think that if you work with someone else or else there’s a lot better chance that I that you’ll get it right. But what you got to do is you got to get you a big glass of iced tea or maybe, unlike a good, strong coffee and take a deep breath and kind of okay I’m going to take a few minutes I’m going to be careful, don’t rush, it Put every wire and carefully check it work with a buddy if you’re in my class work with a buddy, have them check your as you check them. The real trick in getting these things to work, the trickiest part, is to hook them up and it’s, not that complicated to hook them up, there’s, just a whole bunch of wires, and when you start getting these wires running everywhere, is real easy to lose track, and So I’m, just going to tell you that you’ve got to be really really careful on this project. This one is a 16 column by two row, LCD display and if you have a sixteen by two chances, are it’s very it’s very similar to this. If you have, then you can just exactly do what I’m doing in this in this lesson, and everything should work if you don’t, if you have a different LCD for this lesson to work, you need to at least have a similar one. Your project starts acting a lot more like a real product, it’s capable of autonomous operation it doesn’t have to be tethered to a computer to use, and so learning how to use an LCD is a pretty important thing if the LCD that we’re going to be using Is the LCD from the smartphone inventor kit? Hopefully you guys have picked up one of those smartphone inventor kits. Is it really lets you sort of kind of break free from your computer, monitor and you’re, not sitting there having to have it hooked to a computer and not having to sort of be tethered to the serial monitor to get? You know to get information back to the user by having an LCD display, you could hook this whole thing up to a battery and you could sort of go mobile with your project and all of a sudden. What we’re going to learn today is we’re going to learn how to use the LCD display and the cool thing about an LCD display. And so this is kind of a cool way to to get to know how to use a servo and play with the ultrasonic sensor. Number, eighteen is that we had displayed our results using a servo and the servo had a little arrow on it and that little arrow would move back and forth on the servo and display the distance. You can calculate the distance of the target and what we had done in uh in this lesson. The ultrasonic sensor sends out a ping, and then it looks for the returned ping to bounce off of something and then based on the time that the ping travels to the target and back. If you remember in lesson 18, what we had done was we built a device, a circuit to measure distances, and we did that with an ultrasonic sensor. If you’re adept with programming the Arduino and just want to learn how to use an LCD display, you can just jump right in with me on this video. If you’re new to the Arduino, you probably need to go back and catch up on those lessons.
0 Comments
Read More
Leave a Reply. |