cancel
Showing results for 
Search instead for 
Did you mean: 

Wifi SPWF04SA Leds question

Dat Tran
Senior II
Posted on February 08, 2018 at 20:22

Hi everybody!

The current datasheet (

https://community.st.com/external-link.jspa?url=http%3A%2F%2Fwww.st.com%2Fcontent%2Fccc%2Fresource%2Ftechnical%2Fdocument%2Fdatasheet%2Fgroup3%2Fc4%2F02%2Fe5%2F87%2F1c%2Fd2%2F4f%2Ff8%2FDM00328568%2Ffiles%2FDM00328568.pdf%2Fjcr%3Acontent%2Ftranslations%2Fen.DM00328568.pdf

) does not give any indication to which direction that the LEDs should be going other than the name says LED Drive: module running, LED Drive: Wi-Fi Link Up, and LED Drive: power Up. This may indicate that the pin should source the LED and the reference schematic (

http://www.st.com/content/ccc/resource/technical/document/data_brief/group1/f4/06/e8/8b/99/10/4d/b4/DM00375570/files/DM00375570.pdf/jcr:content/translations/en.DM00375570.pdf

) also shows that the pin is sourcing the LED but they do not blink when that is the case. The LEDs only seem active when the WiFi module is sinking from the LED. Is this the proper way?

Thank for the help!

1 ACCEPTED SOLUTION

Accepted Solutions
Posted on March 19, 2018 at 12:43

- module running: blinking if blink_led=1@boot, otherwise is left at reset state and can be controlled by AT+S.GPIO*

- Wi-Fi Link Up: goes low level when link is UP

- power Up: goes high level for a while when the module is started, then goes to low level; it is set to high level when python is active; it acts as MOSI when SPI console is active.

Regards

View solution in original post

6 REPLIES 6
Dat Tran
Senior II
Posted on March 12, 2018 at 19:18

Any idea, please?

Posted on March 12, 2018 at 21:42

Depressing level of response here, flagging this up to management, hopefully some staff responsible for this product line can provide some assistance, or direct you to an FAE with experience on it.

https://community.st.com/0D50X00009XkWv5SAF

https://community.st.com/0D50X00009XkWv4SAF

Kling.Brian

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on March 13, 2018 at 17:29

Hello,

the GPIOs are configured as Push/Pull when in output mode.

As a confirmation, I have connected this simple circuit to all available GPIOs: the two LED are mutually exclusive lit, showing the GPIO can drive both directions.

0690X0000060A71QAE.png

This apply to GPIOs driven by OS and to GPIOs configured by console commands.

If this is not your case, could you please detail it more?

Regards,

Elio

Dat Tran
Senior II
Posted on March 16, 2018 at 15:38

Thank you for the update. It's good to know either configuration will work.

However, for the three LEDs, module running, Wi-Fi Link Up, and power Up, what are their expected states?

For example, Wi-Fi Link Up, does that pin go high when the link is up or does it go low?

Similarly for the other pins. Power Up I imagine is high when the board has power and module running just blinks whenever 'blink_led' is 1, so it doesn't matter. Is that correct?
Posted on March 19, 2018 at 12:43

- module running: blinking if blink_led=1@boot, otherwise is left at reset state and can be controlled by AT+S.GPIO*

- Wi-Fi Link Up: goes low level when link is UP

- power Up: goes high level for a while when the module is started, then goes to low level; it is set to high level when python is active; it acts as MOSI when SPI console is active.

Regards

Posted on March 19, 2018 at 19:21

Thank you for your help!