nyx123: Hello from Singapore

Post Reply
nyx123
Posts: 16
Joined: Sat Jan 20, 2018 9:50 am

nyx123: Hello from Singapore

Post by nyx123 » Sat Jan 20, 2018 9:58 am

I`m new to this stm32f103 series of microcontroller and I usually used arduino board for interfacing, im using the "bluepill" that will send data to the localhost web using esp8266 , es12 wifi module using at commands but apparently im struggling finding some examples with wiring connection from bluepill to my wifi module. Below is the image of wifi module ,

Regards

Nate

http://ibb.co/nkbquG

User avatar
mrburnette
Posts: 2207
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Hello from Singapore

Post by mrburnette » Sat Jan 20, 2018 3:42 pm

Nate,

Welcome.
Some resources and hints: viewtopic.php?f=2&t=3111

You attempting to use the ESP8266 in "AT" (modem) mode... the basic connections look like this:
https://create.arduino.cc/projecthub/je ... uno-663b9e

The Blue Pill is described here:
http://wiki.stm32duino.com/index.php?title=Blue_Pill


With the Blue board, are you wanting to use serial1, serial2, or serial3 ?
The essential procedure is to select the serial port, set the BAUD, then send the desired command and immediately listen.

Have you considered just programming the ESP8266 as an Arduino?
The ESP8266 core is really rather mature and works well. Of course, if you wish to replicate an already written AT program then the mode mode would be appropriate.

If you wish to explore the ArduinoIDE programming idea, I have a few examples on my project page.

Ray

nyx123
Posts: 16
Joined: Sat Jan 20, 2018 9:50 am

Re: Hello from Singapore

Post by nyx123 » Sat Jan 20, 2018 4:59 pm

Ray

Thanks for the reply
mrburnette wrote:
Sat Jan 20, 2018 3:42 pm
You attempting to use the ESP8266 in "AT" (modem) mode... the basic connections look like this:
https://create.arduino.cc/projecthub/je ... uno-663b9e
Basically from the wiring above compare to my wifi module that existing in my hand https://camo.githubusercontent.com/b1e2 ... 642e706e67 does the enable pin above from the arduino example is equal to the ch_pd of my module?
mrburnette wrote:
Sat Jan 20, 2018 3:42 pm
Have you considered just programming the ESP8266 as an Arduino?
Ray
This is my first time ray hope it does not bothers you

Regards

Nate

User avatar
mrburnette
Posts: 2207
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: nyx123: Hello from Singapore

Post by mrburnette » Sat Jan 20, 2018 5:07 pm

The ESP8266 WiKi has some pinouts definitions:
https://github.com/esp8266/esp8266-wiki ... definition

Perhaps this would help.
http://www.instructables.com/id/Getting ... 66-ESP-12/
Image

CH_PD is raised to Vcc

I simply do not (have never) used the "AT" library with anything other than a USB-serial adapter.

Ray

User avatar
mrburnette
Posts: 2207
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: nyx123: Hello from Singapore

Post by mrburnette » Sat Jan 20, 2018 5:21 pm

What I generally suggest in these connection cases:

Using a known good USB-serial module:
Connect he ESP module to a PC running a serial communication program, then
Verify the program works by looping-back Rx-TXon the USB converter
Verify the BAUD and other serial properties N-8-1

Once you can "see" what you are typing, then connect the ESP8266 module. You should be able to communicate using AT...

nyx123
Posts: 16
Joined: Sat Jan 20, 2018 9:50 am

Re: nyx123: Hello from Singapore

Post by nyx123 » Sat Jan 20, 2018 6:20 pm

mrburnette wrote:
Sat Jan 20, 2018 5:07 pm

I simply do not (have never) used the "AT" library with anything other than a USB-serial adapter.

Ray
I think I need to use AT commands because this is my project works , a data collected by the bluepill will be sent to the localhost via wifi module. By searching through google most of the results were pointing to use AT commands.

Anyways thanks for the sources ray this will really help,gonna keep this for future references.

Regards

Nate

Post Reply