Thanks for showing the code Matt. I'm currently finishing mine. Only a few touches to the code (I've managed to show the current speed in an LCD and will try to show other data), some pieces to 3D print, assemble the whole thing and I would be good to go. Your videos have been very helpful!
@MattTester
4 ай бұрын
Brilliant, glad I could help!
@Philip747
5 ай бұрын
Nice video! Perhaps I missed it in the video and in that case I'm sorry - but otherwise you save pins quite easy by also using the "resistive divider-method" for the rotary switch as you'll only use one of the positions at once. And for anyone who doesn't want to build their own resistive divider, there's always the option to use a multiplexer, like the CD74HC4067 :)
@MattTester
5 ай бұрын
I certainly could, I only ran out of pins after I had already wired up the rotary switch so I didn't have that idea at the time. They're also in different controllers, I have a few other videos on them.
@nopuedomas2006
4 ай бұрын
Just for information, I coded a button matrix. That way I saved many pins for other purposes. Cheers
@itstomsmith
Ай бұрын
Hi Matt, thanks for these videos. Really interesting for someone with no electronics, or coding experience! Are you able to explain in a little more detail how all the boxes are connected, indicated by the blue LED's and also the LCD display on the front, for the train selection please? I would be very interested in this also.
@MattTester
Ай бұрын
Thanks, I'm glad you enjoyed it. The data connection between the boxes uses Universal Asynchronous Receiver-Transmitter (UART), using the TX and RX pins on each Arduino. These can be used to transmit and receive data bytes between boards, in this case the main module is just constantly transmitting a number to the other boards which are always listening. The lights stay red until they receive data, then they are set to turn blue. The connection is two-wire but can be split out, here it's split to three 3.5mm audio jacks on the main module and standard audio cables connect to the other modules. The pins on the sending and receiving Arduinos must be flipped so TX connects to RX and vice versa. Hope that helps and thanks for the interest.
Пікірлер: 8