GithubHelp home page GithubHelp logo

Unable to communicate about espduino HOT 6 OPEN

tuanpmt avatar tuanpmt commented on July 18, 2024
Unable to communicate

from espduino.

Comments (6)

Namphibian avatar Namphibian commented on July 18, 2024

Hi Aaron.

From the top of my head here is some pointers.

Just checking but you are running a logic level converter between Arduino
and ESP? If not you might have fried the ESP by now. All connections on ESP
is 3,3v only. You might read about some people being lucky with 5V between
the two but that advise will bring the blue smoke monster.

If there is a logic level converter between the two see below.

Check the following:

  1. Tx pin ESP serial to Arduino RX Serial pin.
  2. Rx pin ESP serial to Arduino TX pin.
  3. Choose pin on Arduino say pin 4 and connect this to the CH-PD on esp.

Initially I had my Tx to Tx and Rx to Rx. Easy mistake to make when you are
wiring even for an old hand.

The CH-PD connection between ESP and Arduino allows Arduino to reset ESP so
that Arduino can control it after start up. The line esp.reset() in code
pulls signal low then high which resets ESP.

Make sure you dont power ESP from 3.3v output on Arduino as the ESP can use
200mA plus and this can kill Arduino. Best is to use a LM1117 or similar
regulator.

I run my custom boards on a 5v power supply with a regulator for 3.3v
regulation for ESP.

If you are using two power supplies ie. 5v for arduino and 3.3v for Esp and
you are using a logic level converter such as sparkfun converter you have
to connect the ground of the 3.3v and 5v circuits. These logic level
converters are normally based on BS138 transistors. If logic level
conversion is ic based, diode based or resistor divider based then you need
to check their application notes for further info.

Kind Regards
Neil Franken
On 17 Mar 2016 8:44 AM, "Aaron J Drago" [email protected] wrote:

I have followed the installation guide (flashed esp w/ firmware, connected
arduino uno and esp as shown, uploaded example MQTT sketch to arduino uno)
but I receive garbage in the serial port. I've tried both the FTDI and
ardunio port at several different baud rates. I've tried both the release
and debug firmwares. I know I can use the esp in stand alone but I would
like to add wifi to my ardunio. I'm not sure what else to try... Do I need
the FTDI controller once it is flashed? Any suggestions? Any help direction
would be greatly appreciated.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#51

from espduino.

hjfabius avatar hjfabius commented on July 18, 2024

Ciao, unfortunately I'm getting exactly the same behavior of @lehighkid.

My full circuit run around 3.3V using an arduino pro mini.

ESP is silent till while(!esp.ready());
and then send approx 10 random chars.. Obviously the code does not proceed further and stay blocked on the while loop.

I tried to also reverse Serial and SoftwareSerial but i've no sucess.

An extra power supplier provide up to 600mA... Any further suggestion?

Ciao
hjfabius

from espduino.

lehighkid avatar lehighkid commented on July 18, 2024

@Namphibian Thank you for the list of suggestions and insights. I do have a logic level converter but I went back to the Nano, started over and was able to get it working... some what - the serial is still garbled but it does connect to Wifi and publish a message on MQTT. I really appreciate the help - I will definitely save it off for when I attempt to do it again.

from espduino.

notsirius avatar notsirius commented on July 18, 2024

I had similar problems until I added pull-up resistors to both of the gpio pins.

from espduino.

hjfabius avatar hjfabius commented on July 18, 2024

Solved also on my side. During the flashing GPIO0 must be low. I forget to remove the low signal during the execution... so it was always in "flashing mode".

from espduino.

Namphibian avatar Namphibian commented on July 18, 2024

Hi Aaron.

Just to clarify you are using hardware serial for ESP and Arduino coms?

If so that should be dedicated to only comms between Arduino and ESP.
Software serial is a hack at best. For example software serial disables
interupt functions during recieves and send, remember it is simulating a
serial port. This can cause hardware serial and other functions to behave
strangely. So use software serial only while debugging and do it sparingly.
If you need more than one hardware serial use the Mega or ATMEL 1284 mcu,
look at the callinium(not sure about spelling) project.

One last thing I must mention. I needed to implement a timer function on my
project using the ESP. For two weeks I struggled with this. When I included
the timer libraries I had some very strange results. Some libraries worked
intermittently other libraries did not even compile. I switched the Arduino
IDE to verbose output and I realised the IDE used the windows temp
directory to store object files.

Since this directory was monitored by my anti virus the anti-virus kicked
in and silently removed, blocked or otherwise mangled the code. I switched
the anti-virus off and compiled and viola code that would not run or even
compile worked like the examples. The Timer2 lib I could not even get am
example to compile. After adding arduino ide to safe list I never had this
problem again.

So compile your code with anti-virus switched off and check. I have been
coding for 35 years and never had anti-virus softly screw my code up. So
check it.

Kind Regards
Neil Franken
On 17 Mar 2016 10:40 AM, "Aaron J Drago" [email protected] wrote:

@Namphibian https://github.com/Namphibian Thank you for the list of
suggestions and insights. I do have a logic level converter but I went back
to the Nano, started over and was able to get it working... some what - the
serial is still garbled but it does connect to Wifi and publish a message
on MQTT. I really appreciate the help - I will definitely save it off for
when I attempt to do it again.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#51 (comment)

from espduino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.