Comments (6)
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:
- Tx pin ESP serial to Arduino RX Serial pin.
- Rx pin ESP serial to Arduino TX pin.
- 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.
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.
@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.
I had similar problems until I added pull-up resistors to both of the gpio pins.
from espduino.
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.
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)
- Timeout with local http servers (Python, Ruby, Node) HOT 3
- MQTT Topic depth? HOT 3
- When I upload software to esp8266 I get an error that is below. Please help me !!!. HOT 2
- Error "'ESP' does not name a type ESP *esp;" HOT 3
- HTTPS Rest API HOT 6
- ESPDuino hang on ESP:process HOT 12
- Using both REST and MQTT results in error HOT 1
- Is there any timeline for the WiFi AP portion? HOT 2
- mqtt.publish from the call back void mqttData(void* response) gives unpredictable result
- malloc assert! HOT 2
- SoftwareSerial as esp serial? HOT 1
- Help sending multiple publish (MQTT,Bridge) HOT 2
- AT Command Not Working
- Unable to Set Qos 1 or 2 while Subscribing. HOT 1
- Connect/disconnect loop without pulling down any change info;
- Getting Garbage after esp.ready() HOT 2
- does not work
- How to read MAC of ESP8266?
- How to work on Arduino Mega.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espduino.