Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Develo
@devyte
which Serial, not what speed
JomoPipi
@JomoPipi
I thought there was just one, the one that looks like
Serial.begin(9600)
Serial.print("hi")
ucod
@ucod
are you using a breadboard*?
JomoPipi
@JomoPipi
you mean like a breadboard or something?
ucod
@ucod
y
JomoPipi
@JomoPipi
yeah for letting the joysticks use the 5v
and gnd
ucod
@ucod
do the serial signals pass through the breadboard?
JomoPipi
@JomoPipi
nope
just directly
ucod
@ucod
hmmm i don’t think esp8266 interprets well 5V signals
JomoPipi
@JomoPipi
the arduino and esp are only connected through the tx-rx pins
you asked if I'm using a prototype board. Yes - but for connecting stuff to the arduino, not for connecting the nodemcu to the arduino
Michael Miller
@Makuna
and ground correct?
ucod
@ucod
you need a bidir level shifter of 3.3-5V between the two
JomoPipi
@JomoPipi
well right now I'm just using usb power for the nodemcu
but I checked and it will function by connecting the arduino's 3.3v pin to the nodemcu's 3.3v pin (and ground to ground too of course)
ucod
@ucod
you still need to adapt the signals between them, to their respective voltages
Michael Miller
@Makuna
most 5v devices will accept 3.3v input signal. The question is will the esp8266 accept a 5v signal?
(and you may have to check the boards for extra on board resistor placements that may already be on the boards)
ucod
@ucod
the esp8266 probably clamps the 5V signal to ground most of the times. not all of it, but the highest in intensity, maybe it’s an internal zener diode. and that’s why something is printed, since some lower energy pulses escape...
Develo
@devyte
the esp is 5V tolerant. At least the gpios anyways.
I'd try the bidir level shifter, and/or looking at the signals with an osc to check for noise
ucod
@ucod
it’s not 5V tolerant, max voltage is 3.6 in-out
Develo
@devyte
the esp has 1.5 serials, plus the SoftwareSerial
JomoPipi
@JomoPipi
I'm not giving the esp any 5v signals
unless the output of the arduino uno's tx pin outputs 5v
ucod
@ucod
of course it is, it runs at 5v
Michael Miller
@Makuna
@ucod The VCC max is 3.6v, I also thought the pins were 5v tolerant
ucod
@ucod
it’s in the datasheet's Table 5-1. Electrical Characteristics, Vihigh - 3.6
JomoPipi
@JomoPipi
anyway... it's working
300 baud is just a bit slow (maybe I can go higher a bit) but I'll be fine
ucod
@ucod
you can fix it easily with a resistor divider
JomoPipi
@JomoPipi
2 resistors, correct? what values would you reccommend
so the arduino tx pin is 5v?
ucod
@ucod
yes, the high levels are always equal to their vcc
just google 5v-3.3v resistor divider
JomoPipi
@JomoPipi
thanks
and that's the same for all the pins?
ucod
@ucod
yes
JomoPipi
@JomoPipi
thanks :D
I guess they said 10k and 20k are adequate
it has to do with the ratio, though, doesn't it? 2:1 will work?
JomoPipi
@JomoPipi
ah so the order of the resistors matter
and then 5 * (2/3) is what makes it 3.3v
so maybe 5v and 3.3v were chosen for convenience? so that you can make a divider with 3 of the same kind of resistor?
Develo
@devyte
@Makuna correct about Vcc, but the gpios can accept 5V signals
JomoPipi
@JomoPipi
so do I connect it to ground to complete the voltage division?
Develo
@devyte
google is your friend
JomoPipi
@JomoPipi
fine... thanks for your help :)