[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1695570918344902.png (587 KB, 1002x1002)
587 KB
587 KB PNG
I, for the life of me, cannot figure out the pinout on this thing. Ive looked at like, 5 different images that are supposedly the pinout, they are all different. I've tried sending HIGH and LOW using digitalWrite on like, 5 different pins and none of them do anything. Last time i used arduino was a decade ago but then, the pinouts were actually accurate? I have no idea what is going on and I've been at this for 4 hours just trying to send a damn voltage on and off
>>
>>101576112
It's printed right there on the PCB. Take for example D0, to use it you need the following code:
void setup() {
pinMode(0, output);
}

void loop() {
digitalWrite(0, HIGH);
delay(1000);
digitalWrite(0, LOW);
delay(1000);
}
>>
>>101576112
D0 D1 D2 D3 D4 3V3 GND D5 D6 D7 D8 RX TX GND 3V3
A0 RSV RSV SD3 SD2 SD1 CMD SD0 CLK GND 3V3 EN RST GND Vin
>>
>>101576203
>>101576242
Doesnt do anything
>>
>>101576203
>>101576242
>>101576293
To clarify, neither using 0 or D0 do anything
>>
OP here, I figured it out. Jannies please delete the thread
>>
>>101576318
First, is your board actually the one from the picture? And second, connect the output to a 220 ohm resistor in series with a LED.
>>
Are you trying to program this as an Arduino or ESP8266?
Is it even getting flashed?
>>
>>101576371
>Are you trying to program this as an Arduino or ESP8266?
>Is it even getting flashed?
I've tried both generic ESP8266 as well as NodeMCU ESP-12E, neither work
>>101576354
>connect the output to a 220 ohm resistor in series with a LED.
i cant actually find my leds, but i have a low voltage solenoid that can be powered from the 3.3v output
>>
>>101576371
>>101576405
to confirm, yes its being flashed, i have it connecting to wifi as a startup procedure and it prints output when it tries to turn a pin off and on
>>
>>101576405
The board needs to have an Arduino bootloader stored in flash. You probably need to download the ESP tools and flash an image first, because the flash memory might actually be empty and you won't be able to use the Arduino framework.
>>
>>101576112
DATASHEET
A
T
A
S
H
E
E
T
ITS ALSO PRINTED RIGHT IN THE BOARD YOU ITARD
>>
>>101576564
Stfu faggot i just ran through every single pin D0-D8 and not a single one worked except D1 crashed the arduino
>>
>>101576493
do you have more info on this ive never heard of that, im using Arduino IDE and i can connect to wifi just not send anything to any pin
>>
>>101576567
Do you even know the steps to load sketches to your esp? Hint it involves the two buttons near the serial
>>
>>101576607
If i can tell it to connect to my wifi, and print when its connected and the ip address, then loop through every single pin sending a high signal then low and i can read the serial output for each pin and see its mapping to different pretty sure thats not the damn gpio pins, pretty sure thats not the issue...
>>
>>101576621
Okay tranny, reinstall bootloader and verify you're using the right board in your ide. Ditch the Arduino ide. Retarded compiler.
>>
>>101576634
Not OP but what do you suggest using for Arduino development? Just the command line tools?
>>
>>101576583
I've actually never used an ESP board with Arduino so you'll have to read the documentation. What board is that? There's an official Arduino Nano but it has an ESP32, not and ESP8266.
>>
>>101576646
Vscode, eclipse, terminal even. Arduino ide lets you make really dumb mistakes and loads the program anyway
>>
>>101576634
>reinstall bootloader
how, where, where is the bootloader? Google tells me nothing other than a github page espressif.github.io/esptool-js but then again, where is the bootloader, where do i get it, do i have to compile the code first? Shouldnt arduino ide be doing this???
>>101576652
>What board is that?
NodeMCU ESP8266 ESP-12
>>
>>101576659
Check this out:
https://github.com/esp8266/Arduino
>>
>>101576670
>something i already did
>which was made painfully obvious when i said "I've tried both generic ESP8266 as well as NodeMCU ESP-12E, neither work"
>>
>>101576705
Then I don't know. You have a chink board without documentation so you'll have to throw shit at it until it works.
>>
File: 1706699057693295.png (34 KB, 894x773)
34 KB
34 KB PNG
I'm tired and 100% convinced that anons here are more retarded than I am

I bet the next suggestion will probably tell me to set pinMode for the pin to output or something equally stupid. I'm going to bed, reddit can probably give decent advice
>>
File: Node-MCU-Pinout.png (78 KB, 1920x970)
78 KB
78 KB PNG
>>101576112
Did you try this one? it says D0 is arduino pin 16.
Arduino IDE sucks for this crap, use vscode with platformio instead.
>>
File: 2024-07-26 16-21-36.webm (3.86 MB, 1920x1080)
3.86 MB
3.86 MB WEBM
>>
>>101577440
>>101577555
doesnt work
>>
Do you have 5v and 3v3? If not then maybe your aliexpress clone was DOA
>>
>>101577555
Turn your LED around, just to be sure.
>>
>>101576967
Which way are you holding the board, maybe the pin it is the opposite side
>>
>>101576405
>solenoid
Lol you probably fried the driver transistor inside your MCU.
>>
>>101576405
>i have a low voltage solenoid that can be powered from the 3.3v output
Bruh, buy the cheapest chinkshit digital multimeter you can find, JFC, you should have had a DMM before you have an Arduino.
And never connect inductive loads directly to microcontrollers.
>>
>>101576112
Setting aside this retarded question, ESP32 is "fun" in terms of pins with caveats. It's all documented, but it can be a trap for beginners when they try to use a pin which can't be high/low during startup and they wonder why it bootloops.
>>
>>101580692
I got one of these tiny esp-01s that you can hook up to an equally small relay board but during boot the fucking relay pin switches on and off several times making it useless, piece of shit has like 20 pins and they had use the one oscillate on boot, had to cut the trace and solder a wire straight into the 5mm chip with 0.1mm pins.
>>
>>101577555
>40 seconds to compile a blink sketch
>>
>>101581559
First time it has to fetch dependencies, Arduino IDE wasn't made for all this crap.
>>
>>101577555
Should I be impressed?
Making the led blink is the equivalent of yellow world.
>>
File: remotepowercycle.webm (2.87 MB, 800x592)
2.87 MB
2.87 MB WEBM
>>101583449
no but its a quick way to check if uploading is working and the ports are ok (change the pin assignment for each port, move the led line to that port and reupload).

more fun to setup the esp webserver and turn on/off led (eventually put a relay in the place of the led to power cycle the cablemodem which was is on the other side of the house).



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.