I trying to work with ESP 32-S2 as it has more number of pins
Want to have some basic info about the connectivity with input output devices and blah blah things
Where to connect LCD 16x2 I2C module
Not able to find on net about proper pin numbers !!!
Please help . . Thanks
Which LCD? They are not all the same.
very common one
green color 2 line or 2 rows
That one
Tells nothing. Try its datasheet.
Datasheet for WOKWI purpose also ??
Ya so how to proceed with WOKWI
if applying ESP32-S2
In practical world I am planning for ESP 32 WROOM 38 pins after studying it on-line
Never got in contact with WOKWI.
The most common LCD interfaces are I2C via a bacpack, 4 or 8 wire interface.
Plenty projects done out there.
If they have the board you are using, select that when you make your new project.
The LCD parts are covered in the wokwi documents. There are example projects in wokwi that show the connection scheme in action.
If the wokwi does not have the exact board you are using, you will need to use any other board and make adjustments to your experiments.
You will find such accommodations to be easy or hard .
a7
horace
August 3, 2023, 2:19pm
11
upload a photo of your ESP 32-S2 (front and back)
and a photo of the back of the LCD
O that way . . .OK I am checking !!!
I don't have a physical one
Just started today with WOKWI only !!
It is very useful as at least you will have no broken components, no dodgy wires and no possibility of electrocuting yourself, or worse.
Click on a component and there might be question mark that woukd take you to the documentation page for that part.
I've done much less experimentation and testing using real parts since I learned about the wokwi and gave it a test run.
a7
Ya just did but it transfers everything to the whole page of ESP-32
The ESP32 is a popular WiFi and Bluetooth-enabled microcontroller, widely used for IoT Projects. Wokwi simulates the ESP32, ESP32-C3, ESP32-S2, ESP32-S3, ESP32-C6 (beta), and ESP32-H2 (alpha).
And specially for that model its not showing anything or say any kind of example is not present there
Sounds like you clicked on the microprocessor board.
Click on the LCD component.
Or go to the documents on the wokwi website.
Please help yourself. Learning by having us spoon feed you answers to every thing that slows you down however briefly is not very effective, and people will surely tire of this.
I said
and you did not try clicking on the component you are wondering about.
a7
Ya worked a lot with it and up to a great extent it reached
Now trying for analog ti digital with multi button with single inputs
using this type of previously used Arduino code
/* Multiple buttons on one Analog pin Example
Use 4 buttons to one bus to control 4 LEDs
Dev: Vasilakis Michalis // Date: 1/7/2015 // www.ardumotive.com */
//Constants
const int yellowLed = 2;
const int redLed = 3;
const int blueLed = 4;
const int greenLed = 5;
//Variables
int buttonValue; //Stores analog value when button is pressed
void setup()
{
pinMode(yellowLed, OUTPUT);
pinMode(redLed, OUTPUT);
pinMode(blueLed, OUTPUT);
pinMode(greenLed, OUTPUT);
}
void loop()
{
buttonValue = analogRead(A0); //Read analog value from A0 pin
//For 1st button:
if (buttonValue>=1010 && buttonValue<=1015){
digitalWrite(yellowLed, HIGH);
}
//For 2nd button:
else if (buttonValue>=1000 && buttonValue<=1008){
digitalWrite(redLed, HIGH);
}
//For 3rd button:
else if (buttonValue>=990 && buttonValue<=998){
digitalWrite(blueLed, HIGH);
}
//For 4th button:
else if (buttonValue>=870 && buttonValue<=880){
digitalWrite(greenLed, HIGH);
}
//No button pressed, turn off LEDs
else{
digitalWrite(yellowLed, LOW);
digitalWrite(redLed, LOW);
digitalWrite(blueLed, LOW);
digitalWrite(greenLed, LOW);
}
delay(100);
}
Not responding !
Dint find anything regarding ESP 32 !!!
King_RAJ_Enters:
Not responding !
I do not think wokwi can simulate an analog circuit such as us employed in that button hack.
If you must use that technique and wish to work in the wokwi, please see
This.
HTH
a7
Woww that is a video game
And ya I tried with this analog and its really not working with WOKWI
In practice I found a big instability with more number of buttons on analog pins
With less number of resistor button pair it works well
So as per your suggestion how much maximum input should I connect there ?
Four button is OK ???
I have never liked the analog hack for putting multiple buttons on one pin.
There are many ways to do buttons. Without hacks.
How many buttons do you need? Say and we can suggest ideas for how to handle that.
What are you using all your pins for now, or for what are you trying to save them?
a7