I want to attach oled 1.3" SH1106 to nodemcu esp32s I used this library (https://github.com/wonho-maker/Adafruit_SH1106) but it says "adafruit_sh1106.cpp:29:26: fatal error: avr/pgmspace.h: no such file or directory". I tried to use another library (https://github.com/nhatuan84/esp32-sh1106-oled) and it uploaded successfully but it doesn't show anything.
P.N:my nodemcu esp32s's scl and sda pins are 22 and 21
The message about avr/pgmspace.h means that the library isn't compatible with the ESP32. That's a file that only exists on Arduino CPUs; it's not part of the ESP32's software. If you want to use this library you'll need to figure out for yourself how to make it compatible with the ESP32, which may be a lot of work.
If you want to find out why the other library doesn't work you'll need to post a new question and include your program (cut down to be a minimal, reproducible example that demonstrates the problem) and precise, complete details on how you wired the display to the ESP32.
Related
I was compiling the code of arduino_TinyGSM but the following error occur, I don't know what to do.
Here is code link:https://github.com/Xinyuan-LilyGO/LilyGo-T-Call-SIM800/tree/master/examples/Arduino_TinyGSM
This error doesn't refer to your ESP board, but rather your SIM800 module. If you look at example sketches in the , e.g. Arduino_SMS.ino, then you see some preprocessor definition which selects the SIM800 hardware and firmware combination used. You need to do the same.
I have an Adafruit BLE Feather M0. I am following these instructions here - https://learn.adafruit.com/adafruit-feather-m0-express-designed-for-circuit-python-circuitpython?view=all
Really hoping someone can help me out as I am stuck in the very first task it self.
I see the board and select the correct one "Adafruit Feather M0" but the Port doesn't show serial options. It only shows the "/dev/cu.Bluetooth-incoming-Port" as an option. The instructions above show serial ports to choose from. What am I missing? This seems too basic to not work.
Looks like the cable I was using only supports charging and not data. TIL!
The other main thing, I think this is what hit me is that Arduino and Circuitpython are not enabled at the same time. If you install Cirtuitpython it will disable Arduino.
I'm working on Arduino Project using Nextion Display. At first It worked perfectly Arduino used to read and write data to display shown component, but for some reason Nextion doesn't send data to arduino anymore, I checked the Voltage supply common gnd, and wiring is perfect (TX ==> RX2 , RX ==> TX2).
I'm using Nextion Library which is working bu default for Arduino Mega , so no change is necessary.
here is the link to nextion library: https://github.com/itead/ITEADLIB_Arduino_Nextion
I'm sure the code doesn't contain any problems. It's all about serial communication from nextion display.
I have found out that the Nextion Display becomes unresponsive if you have any delays in your loop.
In several parts in the library there are timeouts of 100 millis if you have a larger time out like delay(120) you receive no data at all.
Furthermore the Library you are pointing to is related to using Serial2 look at my solution at github Serial1 or Serial2 in external library reference
This will solve your problem.
I have an Arduino Uno and I am using arduino 1.0.5 IDE. I followed he procedures for bootloading an atmega328P-PU on a breadboard.
I uploaded the ArduinoISP sketch first, made the connections(using the External Oscillator) and then wired it up. Then, I selected the programmer as Arduino as ISP, selected the board as Arduino duemilanove w/ Atmega328P. Then I selected the correct serial port and clicked Burn Bootloader.
I got the following errors:
avrdude.exe: stk500_program_enable(): protocol error, expect=0x14,
resp=0x50avrdude.exe: initialization failed, rc=-1 Double
check connections and try again, or use -F to override
this check.avrdude.exe: stk500_disable(): protocol error, expect=0x14,
resp=0x51
How to solve this issue? Also, can I upload the bootloader directly by using it on the Uno in place of the original chip. If so, how?
to my understanding the error you have indicates a bad reading from the chip. I experienced that with chips that were either dead or not properly connected, especially to power supply.
You may find more detailed information in th tutorial : https://www.arduino.cc/en/Tutorial/ArduinoISP
Especially those things :
Note for Arduino 1.0: you need to make one small change to the
ArduinoISP code. Find the line in the heartbeat() function that says
"delay(40);" and change it to "delay(20);".
Select the items in the
Tools > Board and Serial Port menus that correspond to the board you
are using as the programmer (not the board being programmed).
Instead of arduino built-in boot loader just go through below link and it will be great for uploading boot loader and verifying board status info
I am replying you this because same issue I got long back and it saved me.
One more thing for arduino boot loader: for atmega328 you need to put capacitor between reset and gnd( in case you missed)
For gammon bootloader you don't need it.
Be Innovative.
For reset line you might me using 100nf(thats what stated in documentation )...but sometimes it doesn't work...try something like 4.7uf, 22uf or 47uf or close values
I had a similar problem and the issue was that my programmer was a bit slow, I used the -B flag for avrdude to slow down the bitrate and it started working, I set the -B20 and works like a charm every time, but I use the USBTinyISP programmer, not the stk500 one, so this might not work for you.
In case someone stuck at this as I did and nothing like changing the cap value helped. Make sure you are using your USB-TTL adapter in a 5v mode (obviously for a 5v powered chip). I always used it in a 3.3v mode in order not to accidentally burn my 3.3v chips and it always worked. Until today, I was trying to flash my custom atmega8 board and everything worked with the ISP but I was having a hard time using the bootloader and after half a day searching and trying different stuff the 5v setting to the rescue.
Why does not work library, if the Launchpad is compatible with Arduino?
The sensor data is sufficient to derive to serial port.
What is the difference between dht11 and dht22 libraries?
There is a project called Energia which says it's a fork of Arduino for the MSP430.
Alternatively there's a post here with code to read the DHT11 on the MSP430 (native code, not using Energia, as far as I can tell), and another one here with code to read the similar DHT22 on MSP430/Energia.
I understand from discussion about these sensors on the Picaxe forum that they're a bit picky about timing, so you may need some tinkering to get this stuff to work.
I came accross this while searching for DHT11 and MSP430, if the question is still valid:
Please check the following code(s) that I've written for interfacing DHT11 sensor and MSP430, the codes do not require any library, you can just paste it in your main.c file in code composer studio and debug+resume. 1st file below(dht11_MSP430G2553) does a one time read and you can see the values in the expressions window, the second file (MSP430_DHT11_Sensor) is more mature and it reads the values in a loop by resetting the microcontroller with watchdog timer and it outputs the values to the serial monitor in 19200 baud
https://github.com/selimg76/microcontroller/blob/master/dht11_MSP430G2553
https://github.com/selimg76/microcontroller/blob/master/MSP430_DHT11_Sensor
Detailed explanations are in the following videos:
https://youtu.be/Hid_jB_Dy-A
https://youtu.be/Fzf8q6fgxfQ