//RX on Bluetooth to TCX on Arduino through a voltage divider 50ohm from arduino and 100ohm to ground. This is so we can drop the the voltage down to 3.3v (roughly)
// Use blueterm on android to get messages
void setup()
{
pinMode(ENA,OUTPUT);//output
pinMode(ENB,OUTPUT);
pinMode(IN1,OUTPUT);
pinMode(IN2,OUTPUT);
pinMode(IN3,OUTPUT);
pinMode(IN4,OUTPUT);
pinMode(ENA1,OUTPUT);//output
pinMode(ENB1,OUTPUT);
pinMode(IN11,OUTPUT);
pinMode(IN12,OUTPUT);
pinMode(IN13,OUTPUT);
pinMode(IN14,OUTPUT);
mySerial.begin(9600);
}
void loop() // run over and over
{
while (!mySerial.available()); // stay here so long as COM port is empty
receivedChar = mySerial.read();
if (receivedChar == 'A') {
Serial.print(receivedChar);
//digitalWrite(ENA,LOW);
// digitalWrite(ENB,LOW);// High is start driving car
digitalWrite(ENA,HIGH);
digitalWrite(ENB,HIGH);// High is start driving car
Module power 3.3V, regular current consumption at 70ma, peak current at 240mA (300mA must be able to provided)
+20Dbm power, 100M max transmitting distance on ideal circumstance.
It is common and correct to see some random error data when module is power up, and end up with "ready" (Turn baud rate to 115200 can see this actual debug data, this is used for firmware updating)
IC Features
802.11 b / g / n
WIFI @ 2.4 GHz, supports WPA / WPA2 security mode
Ultra-small size module 11.5mm * 11.5mm
Built-in 10 bit precision ADC
Built-in TCP / IP protocol stack
Built-in TR switch, balun, LNA, power amplifier and matching network
Built-in PLL, voltage regulator and power management components
802.11b mode + 19.5dBm output power
Supports antenna diversity
Off leakage current is less than 10uA
Built-in low-power 32-bit CPU: can double as an application processor
SDIO 2.0, SPI, UART
STBC, 1x1 MIMO, 2x1 MIMO
The guard interval A-MPDU, the polymerization of the A-MSDU and 0.4 s of
Within 2ms of the wake, connect and transfer data packets
Standby power consumption is less than 1.0mW (DTIM3)
Operating temperature range -40 ~ 125 ℃
2. Connection
3. Connect ESP8266 to Arduino TX to PIN1 RX to PIN0 CH_PD to 3.3 Vcc Vcc to 3.3 vcc GND to GND
VDO
4. Test Arduino Board load simple blinking led pin 13 make sure board connected code void setup() { // initialize digital pin 13 as an output. pinMode(13, OUTPUT); } // the loop function runs over and over again forever void loop() { digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(13, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second } 5. serial monitor check AT Command load AT Command Here : https://www.dropbox.com/s/iyuybn7bg9nw0vg/4a-esp8266_at_instruction_set_en_%281%29.pdf?dl=0 5.1 AT Should get OK 5.2 AT+GMR version 5.3 AT+CWMODE? Mode will show 1,2 or 3 5.4 AT+CWLAP Will show Access point around 5.5 AT+CWJAP="User","Password" connect Access point 5.6 AT+CIFSR Get IP All OK mean connected.
Module power 3.3V, regular current consumption at 70ma, peak current at 240mA (300mA must be able to provided)
+20Dbm power, 100M max transmitting distance on ideal circumstance.
It is common and correct to see some random error data when module is power up, and end up with "ready" (Turn baud rate to 115200 can see this actual debug data, this is used for firmware updating)
IC Features
802.11 b / g / n
WIFI @ 2.4 GHz, supports WPA / WPA2 security mode
Ultra-small size module 11.5mm * 11.5mm
Built-in 10 bit precision ADC
Built-in TCP / IP protocol stack
Built-in TR switch, balun, LNA, power amplifier and matching network
Built-in PLL, voltage regulator and power management components
802.11b mode + 19.5dBm output power
Supports antenna diversity
Off leakage current is less than 10uA
Built-in low-power 32-bit CPU: can double as an application processor
SDIO 2.0, SPI, UART
STBC, 1x1 MIMO, 2x1 MIMO
The guard interval A-MPDU, the polymerization of the A-MSDU and 0.4 s of
Within 2ms of the wake, connect and transfer data packets
Standby power consumption is less than 1.0mW (DTIM3)