Its my first project with an Arduino, so please bear with the dumb questions.
For this project of mine, I need an Ultrasonic Sensor, a Gyroscope, a Buzzer, three push buttons and an 16x2 LCD.
Can I connect all these components at once to an Arduino Uno? I mean will I run out of pins or not? Should I go for a Mega 2560 (will have to buy one though).
Edit: a GSM sim800 as well lol
-
1ultrasonic s. 2 pins, buzzer 1 pin, buttons 3 pins, gyroscope i2c? 2 pins, LCD i2c? same two pins, not i2c LCD 6 pins. Uno has 13 pins.Juraj– Juraj ♦2019年05月26日 06:27:35 +00:00Commented May 26, 2019 at 6:27
-
Yeah getting I2C for LCD, but I don' think the gyro comes with one. Here's the link to it: gyroSQLinjector– SQLinjector2019年05月26日 08:49:23 +00:00Commented May 26, 2019 at 8:49
-
The gyro is I2C toochrisl– chrisl2019年05月26日 09:25:31 +00:00Commented May 26, 2019 at 9:25
1 Answer 1
I think you're fine depends on the gyroscope model and lcd. -For ultrasonic sensor thats 2 pins -the lcd needs at least 6pins but with an i2c adapter you only need 2 pins -3 push buttons 3 pins -one pin for the buzzer Plenty of room left on the uno
-
Thanks for replying. So if I get a i2c, I'll be good to go? Here are the links to the components: Gyro Ultrasonic I2C BuzzerSQLinjector– SQLinjector2019年05月26日 08:40:25 +00:00Commented May 26, 2019 at 8:40