surak / arduino

Stuff related to arduino, nodemcu, ESP8266 and other microcontrollers
0 stars 0 forks source link

How did you connect laser to the NodeMCU? #1

Closed AnandVetcha closed 7 years ago

AnandVetcha commented 7 years ago

Can you please share a picture displaying how you have connected laser to NodeMCU?

surak commented 7 years ago

I haven't. I connected it to an arduino UNO. To be honest, the whole nodemcu pinout is a mystery to me. I posted a question on stackexchange about that: http://arduino.stackexchange.com/questions/33460/following-on-esp8266-board-pins-how-do-they-map-on-the-motor-shield

AnandVetcha commented 7 years ago

image

After using my multi meter i tried to understand the pin connection of the Motor shield. Following are my observation's: GPIO Section:

UTART/SPI section:

Near the white colored power switch we have a pin called "AD". I couldn't figure how this motor shield's "AD" pin is interfaced to NodeMCU. Do you have any idea?

Do you have any plans to port your Arduino script to NodeMCU?

surak commented 7 years ago

Wow, thank you! NO ONE answered on the two different stack exchanges (electronics and arduino). The script itself runs on nodemcu, see the car-blynk directory here.

include

include

AnandVetcha commented 7 years ago

While interfacing the laser module did you power it with 3.3V or 5V? Do we need to place any resistor in series?

surak commented 7 years ago

I used 5v, no resistor: https://surak.wordpress.com/2017/01/07/running-a-5v-5mw-650nm-laser-from-arduino/