Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now
5

Yes, it is different. First: Never run a motor directly from IO pins - you will damage your Arduino. Not only can a real Arduino not supply enough current, but motors generate a lot of back-EMF that will kill an Arduino. Secondly a pin doesn't connect direct to GND or VCC - it is connected through a MOSFET that performs the switching. That MOSFET has an ...


3

While writing this answer, I found out about the register emulation of the Arduino Uno Wifi. The Uno Wifi is a different chip, than the Uno, thus you have different registers. But the Uno Wifi was thought as a drop in replacement, so register emulation maps the old register names to the new registers, so that you can basically simply reuse the old code for ...


2

You are calling setCursor() with: //Row, Colum lcd.setCursor (0, 4); lcd.print(DiceOne); lcd.setCursor (1, 4); lcd.print(DiceTwo); While your comment notes the order is Row, Column, there appear to be several LiquidCrystal libraries floating about, some of which use Column, Row order in the SetCursor() function. The official Arduino library source ...


2

The return value of strcmp does not have boolean semantics, as you seem to incorrectly assume. strcmp is a tri-state comparator, which returns negative, zero or positive value. For equal strings it returns zero, which means that an equality comparison with strcmp should normally look as follows if (strcmp(str1, str2) == 0) Serial.println("Equals"); else ...


2

Hannah, people that write software are inherently lazy, so because your code does the same thing over and over its quite alien to most people on here :) As a rule of thumb if you copy and paste it more than once it should be a function. You have functions at the top of the code to move the car, but you don't seem to use them. Using them will make the code ...


1

The code that's sent to Arduino is "compiled" which means it's changed from human readable form to a binary data that can be understood by the processor. The "code" you wrote remains on your computer only. This itself is a way of encryption since it's impossible to retrieve the original source code from that binary data. That data can only be "decompiled". ...


1

In the real world, either pin sinks current to Gnd via an onchip N-channel MOSFET. They will safely sink 20, 25mA. If your motor allows more than 40mA to flow, you risk damaging the pin and likely the whole chip. Similarly, either pin can source the same current to a load, likely via P-channel MOSFET, with the same current limitations. Using both together, ...


1

It seems that your issue is probably connected with LCD timing. Sending data to LCD requires a precise timings, and the onboard chip of the LCD module very much like a few milliseconds of time to finish processing the data sent, instead you pass the entire clear and draw command each loop cycle. I used the default Tinkercad LCD display example. This code ...


Only top voted, non community-wiki answers of a minimum length are eligible