-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Wiring Connections from teensy 3.2 to Esp8266 not working or something with script wrong? #1565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You could have a look at the bottom half of this page Suggest you just configure the ESP8266 as a wifi shield, as described here |
Thanks for the help drmpf I do not understand why this is happening. Also worth mentioning, in the code (http://www.forward.com.au/pfod/CheapWifiShield/ESP2866_01_WiFi_Shield/ESP8266_WifiShield.ino.txt) I changed the password as suggested with the java tool. No problem. However I am not sure I have the correct pin number as I am using a ESP-12. I looked around on the internet and it seems that pin 4 is the correct number, though I do not say this with a certianty, and I therefore used 4(after trying 2 with this error message, also tried 11,12&15). Do you know any better? |
error: Failed to open COM5 For programming the Teensy? here are my notes from a while back on programming Teensy
You definitely need a GND connection between the two boards. This the return for the TX and RX lines. Just connect the two -ve supply lines together. Nothing special about Pin 2 you can use any free GPIO input to detect if you should go into config mode. Check out this issue #437 |
Hey drmpf |
OK, from what I understand your Teensy is working. Try programming a simple blink example on the ESP and get that working first, then try programming my code. I have an ESP-01 and an OMILEX board and the code works on both so I don't think there will be a problem with ESP-12, If you have an ESP-12 select that in the IDE. |
Yeah it is the ESP that is giving me the problems. I tried it with the setting of Board: Regarding firmware/software downloads is there something I should be doing? Because at the moment the only software I am using is the Arduino IDE. I havent downloaded anything specific for the ESP (other than the ESP board for the IDE) any suggestions on what I should try or do next? thanks I hope this all makes sense :/ |
OK lets assume you have your ESP and Teensy wired up as shown here Note the protection resistors, R1 and R2, They prevent the Teensy / ESP shorting each other out by mistakes in programming. Then you need to program the ESP. First you need to program the Teensy with an empty sketch so the Teensy is not driving D0/D1 otherwise it will upset the ESP programming. Then to program the ESP you need a USB to 3v3 serial cable, I used an OMILEX USB serial cable F https://www.olimex.com/Products/Components/Cables/USB-Serial-Cable/USB-Serial-Cable-F/ Then to program, turn the power off to the board, short GPIO0 to gnd using the link, apply power and program the ESP via the IDE. Then remove the GPIO0 link. See if you can get the ESP blink sketch running this way to start with. |
Quick question, what is/are JP1 and JP3? |
In my circuit above JP1 is the link you short, before powering up, to get the ESP into Programming mode To use the circuit above you need a delay in the setup() to give you time to manually short JP2 AFTER power up. For another way to do this see see http://www.forward.com.au/pfod/ESP8266/GPIOpins/ESP8266_01_pin_magic.html |
revised previous post. |
hey drmpf i have had significant prgoress (I feel), and this is how it stands. To solve this, from the other threads (#466) on this forum it says to connect GPI00 to ground, which I am doing and it should be fine. IE Am I doing the above correctly? FYi I found this really useful (https://www.youtube.com/watch?v=8J7zflVO8K0). very dumbed down for simpletons like me :) plus the guy was using the module 12 version which was nice to compare with. Many, many thanks Tej |
Hi, I think you should take a step back and remove the teensy altogether and just get the programming of the ESP running reliably. Do a clean install the Arduino V1.6.5 IDE, and then the ESP addon Checkout the wiring shown on this page You can use your 3V3 supply board to power the ESP. |
Hey drmpf So i followed those steps, did a clean install of both and there has been a marginal improvement, though I am not sure if this is because i re-wired everything (this is what it looks like now(https://imageshack.com/i/pnEcH81lj), or because of the reinstall. I now have some gibberish coming up on the IDE screen (https://imageshack.com/i/pnNRgfs8p) when i type anything, which has not happened before. I have read around and I assume this is to do with a lack of current? i am currently using a 1.5A regulator so this sounds surprising to me, because to my knowledge the ESP only needs 300mA. In the meanwhile I have ordered a 3A 3V3 regulator to see if this is really the problem. Do you think power is the problem? When i (finally) get to the point of uploading blink to the ESP, I assume it would be a case of attaching the positive leg of the led to the GPI02 pin and the negative to the ground rail. Also , I am aware I have not used the resistors just yet. I will use them once I get things going. |
Actually I normally pullup GPIO2 with a resistor also. To program with the OLIMEX cable, power down and then connect GPIO0 to ground via a link (but leave the pullup resistor in place) then power up, then program. Do it again if it does not work the first time. You will always get some output after programming due to ESP debug You don't need to add a led. The ESP-12 has a built in green led that will flash when you program the ESP2866 blink example that is added to the IDE when you install ESP support. |
You said: and add a 3V3 supply Add a 10uF 16V or higher cap and a 0.1 ceramic cap between the 3V3 ESP pin and ground pin as close to the esp as possible to reduce the possibiliity of supply problems. Other than that one exception regarding power, i have done all the above and the same error message keeps coming up: |
The OLIMEX USB cable does not supply power so you need to power your ESP from something else. When I get that message I try AND/OR try swapping the Tx, Rx cables over incase you got them wrong. |
Also check out this link |
Hey drmpf, I got it working on blink. Yay! Haha, this took so long Next step WiFi shield...lets hope this is easier! |
And thank you ever so much for your help! |
I am probably a little bit too happy but I have managed to do the hello world as a web server. Really happy to finally be making some progress.. |
The world is you oyster! |
I will definitely look into the pfod app....just out of interest is that something you have made? |
Yes I have been developing pfodApp for some years now |
Hey drmpf, I have been having some fun with esp recently, however I would like to now take things a bit further, but obviously I have hit a stumbling block. I have an LED strip connected to my teensy3.2 with a sequence that I would like it to follow. I notice with the pfod app you can do similar stuff, but how would I do this? thanks :) Tej |
Hi Tej, On 5/03/2016 2:10 AM, Tejkaran wrote:
|
ah right, ok, thanks. and then do i need to use the pFod app to use it? |
yes On 5/03/2016 9:12 AM, Tejkaran wrote:
|
Ok. I'll get onto it.
|
hey drmpf, |
Hi All
First of all, I apologise if this is not meant to be here. I was not sure where else to go, so if this is in the wrong place, could you redirect me please. Thank you.
I am not a an expert with circuit boards etc but I feel comfortable doing them. However I am having trouble connecting, or at least getting some sort of response from the ESP8266.
My wiring goes as such:
VCC & CH_PD are connected to 3.3V (driven by a 3.3V 1.5A regulator supplied by 5V 60A power supply)
GND, GP015 & GP100 all to the ground (on the power supply)
TXD goes to Pin 0 on the Teensy 3.2 (RX1)
RXD goes to Pin 1 on the Teensy 3.2 (TXD)
I run the Arduino IDE with this script on this page -> half way down (https://kaspars.net/blog/electronics/esp8266-teensy-arduino) and nothing comes up on my serial monitor. I have it set at 115,200 baud and have messed around with different settings too. In addition I have both NL and CR as setting too. I am using Port COM4 (that is the only option). When I type in AT in the serial monitor nothing happens at all.
When I use this code (https://forum.pjrc.com/threads/27850-A-Guide-To-Using-ESP8266-With-TEENSY-3), the first part of it. It works as suggested with the LEDs turning on/off very quickly if I type anything into the Serial Monitor. However if I try to type any code such as AT, AT + RST etc. into it to get something proper then nothing happens,
My question is, what do I need to do now to get the ESp8266 up and working? I think I am nearly there, maybe just a novice error somewhere?
Any help would be appreciated
Thanks
Tej
The text was updated successfully, but these errors were encountered: