Skip to main content
shopping_basket Basket 0
Login

How to build a Arduino Robocar Part 1

stu.law222
5
stu.law222 has not written a bio yet…

Comments

April 27, 2017 11:32

Good to see Arduino projects appearing here Stu. I do a lot myself and use DesignSpark for modelling. With push switches I would recommend that you use the INPUT_PULLUP option for the digital port, to employ the internal pull-up resistor, and test for an active LOW condition. I suspect your digital input was floating around and picked up random HIGH/LOW states from electrical noise. It would also be useful to include a simple circuit schematic as part of your descriptions.

April 27, 2017 07:46

@thpitsch Thanks! I didn't realise that. I think the problem was my circuit as I'm waiting for the input pin to go high and don't have the pin referenced. In part 2 I talk about pull-ups and it seems to have solved the issue :)

0 Votes

April 27, 2017 07:41

Maybe you have a reset every 7 seconds. This is happening if you are connected to your computer via USB but don't use the serial connection with an open serial monitor. If you initialize the serial connection - even if you don't use it - then it will work without auto-resets.

April 10, 2017 10:37

Thanks Lewis! See you for part two!

0 Votes

April 10, 2017 10:32

Great article Stuart

[Comment was deleted]

Related Content

DesignSpark Electrical Logolinkedin