I2C with ESP8266 is not working with another microcontroller except arduio uno - arduino

I am trying to communicate my esp8266 nodemcu board with a microcontroller which is not arduino. I have tried I2C scanner which is working perfectly and gives out the address or the slave. The problem is that no data is transfered between the two. Same code is working properly with arduino uno. I have no idea what is the problem here. Can anyone tell me the problem and the solution is any?
I configured my esp8266 as master and an another microcontroler as slave. I ran the scanner on esp8266, and it works fine. Then I was trying to communicate between them which is somehow not happening. The data that are printed on the Serial monitor are garbage values. I want to know what is the problem. I was using he arduino's Wire library which is bit not working in case of esp8266 but working fine with arduino uno.

Related

Control Arduino Pins via ESP8266 Webserver

I want to program a simple Webserver with an ESP8266 but I want to connect the ESP8266 to an Arduino Mega. I want to connect a LED and a Sensor to the Arduino and control the LED and read the sensor data via the ESP8266 Webserver.
I am a beginner and dont want too complex solutions. It's just a simple school project.
For the Webpage I am sending just some HTML Code, I do not use Blynk or anything like that.
My question is how can I connect the ESP8266 to the Arduino and control it's pins?
There is a million ways to connect an ESP to an Arduino.
Without any shields or perihperals you can basically use any wired bus that does not require transceivers.
For example I2C or SPI.
With shields or peripherals you can use CAN, LIN, RS232, Ethernet, WIFI, Bluetooth, radio, optical and audio transmission... The list is endless.
You can of course read a sensor with the ESP so an Arduino Mega is not really necessary.

Is it possible to factory reset an arduino from hardware to remove bad user code?

I was troubleshooting why Serial1 was always throwing undefined errors in sketches I was trying to run when I found a solution posted online for a slightly different board that suggested this line:
HardwareSerial Serial1(2);
I uploaded it and now the Arduino doesn't show up in the IDE, did I remap it's serial communications? Why is this possible!
Is there any hardware factory reset option available on these boards? Did I just brick my device?
edit: It seems the STM32Cube programmer app can be used to communicate with the device but I'm not sure where to get the original firmware to flash. https://imgur.com/a/LbiHenf
Assuming from the tag in your question, I guess you have an STM32 – (BluePill) Development Board (STM32F103C8).
If you think that your board is not handling serial communication properly then you might consider burning bootloader to your board. This will reset the complete configuration of your board.
There are many ways in which you can burn bootloader to your board.
Using another Arduino board like Uno / Nano / Mega
Using an FTDI USB to TTL Serial Adapter.
You might want to go through tutorials list below:
Getting Started with STM32 using Arduino IDE: Blinking LED
Programming STM32F103C8 Board using USB Port

Difference in I2C Reading Arduino and Raspberry

I tried to read my sensor data from my Raspberry Nano W(2017) via I2C and UART, but without success. Afterwards I tried via my Arduino Uno R3 and here it worked.
I am not that familiar with the SW-Differences, but is there the possibility, that the EEPROM on my Sensor only works with Arduino and is not compatible with the Raspi I am using?
Or I am just too stupid to get it running via my Raspi?
BR

arduino mini pro crashes when receiving bluetooth data

im using arduino mini pro 3.3v and the hc-06 to send and receive data between android app and arduino.
The problem is when i send data to the arduino it crashes (restarts).
This project was working fine for some time. I have the HC-06 connected directly to the rx and tx as it is a 3.3v mini.
I have tried an other HC-06 and the same thing happens. Im guessing its the mini that is at fault. this isn't as easy to change as its soldered to a pcb circuit.
it sends data back to the app no problem and everything else seems ok.
Any thoughts would be appreciated.

GSM Module code Not Working On GSM breakout board

I'm in a situation and need some advice.
Scenario 1:
Arduino Uno/Genuino +
ICOMSAT SIM900 Module(http://www.itead.cc/icomsat.html)
(placed the jumpers such that Digital Pin 2 is rx and 3 is TX on the shield)
Code Used: The send receive SMS example code in the arduino website.(
(https://www.arduino.cc/en/Tutorial/GSMExamplesReceiveSMS)
Everything Works fine without a glitch.
Scenario 2:
Arduino Uno/genuino +
GSM breakout board(https://www.google.co.in/search?q=sim900A&espv=2&biw=1600&bih=717&source=lnms&tbm=isch&sa=X&ved=0CAYQ_AUoAWoVChMIqd748qb8yAIVYXumCh2s2Aaq#tbm=isch&q=sim900a+gsm+module&imgdii=9zJcFQBaoLAKzM%3A%3B9zJcFQBaoLAKzM%3A%3B7eDw6qGc3qZjMM%3A&imgrc=9zJcFQBaoLAKzM%3A)
Had loads of issues with softwareSeial.h library and ended up cross connecting the default on board rx/tx with GSM board's RX/TX and everything worked fine. (though I didn't liked the fact that everytime during programming I had to change connections to upload a sketch)
code used is from here (http://www.theengineeringprojects.com/2014/06/send-sms-with-arduino-uno-and-sim900d-using-at-commands.html)
Now my Problem:
Since the shields are very costly, I decided to settle on the cheaper boards for my project. But the Code used for the GSM shield was so easy to understand (since the library was doing all the heavy lifting) I tried to use that. I connected Rx of GSM board to pin 3 and TX to pin 2 of arduino and uploaded the same code I used for the GSM shield scenario. But the code won'r work, I tried to tinker a few blocking things like the enable pin code where the shield is brought up etc. but no luck. Can anyone put some light on it, has this been tried before, is it not supposed to work the was i want it to ?
Thanks a lot in advance.

Resources