Esp32 hardwareserial7/30/2023 ![]() Specifically, getTemperature() returns a float, but it's being assigned into a int8 - and one of the errors it returns is -273.15, so well outside the range of an int8 - so I'd guess that -17 is just the error left over from trying to convert the float to an int8. Unfortunately the example has at least one bug in it, so I would be careful and check everything. It sounds like it isn't even able to communicate with the board currently, so I'd start with that. I would also try switching your RX/TX in case you have them backward (just change it in code). I suspect you're using Hardware, which shouldn't have any problems, but you never know. Looking through the library, are you using HardwareSerial or SoftwareSerial? It might be worth it just to switch to the other one and see if it makes a difference. I'm sure you're planning something more permanent down the road, but skipping this may cause more headaches than the time saved. You obviously don't need to do these things, but I always have a couple of projects going and this will save you tons of time and mistakes when going back to something that you did months or years before.Īnyway, on to the specific suggestions! ) I would normally put connectors on the power/gnd on the sensor - while those may make decent contact just wrapping them around, it's super easy to short or for it to give intermittent connections, which would then cause the sensor to reset or partially reset. This way it's easy to just glance at it and get a general idea of what's going on. #3 If possible, use the same colors for similar operations - like I'll typically use green and yellow for rx/tx. #2 Reserve two colors of wire for power and ground - typically red and black. ![]() #1 Don't change the color of wires (like you go yellow to red, and red to black) It just makes it much easier to make a mistake. A couple of minor suggestion I have that will make your life much easier when prototyping: Memes and other low effort jokes are not acceptable forms of content.Īs u/Marus30 said, you definitely need to share a common ground across all these component. Please keep submissions on topic and of high quality.Ĭivility & Respect are expected. It is a successor to the ESP8266 microcontroller. The ESP32 series of chips is created and developed by Espressif Systems and is manufactured by TSMC using their 40 nm process. It and includes in-built antenna switches, RF balun, power amplifier, low-noise receive amplifier, filters, and power management modules as well. The ESP32 series employs either a Tensilica Xtensa LX6, Xtensa LX7 or a RiscV processor, and both dual-core and single-core variations are available. ![]() ESP32 is a series of low cost, low power system on a chip microcontrollers with integrated Wi-Fi and dual-mode Bluetooth.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |