Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 13:46 26 Apr 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Onboard LED of the pico w

Author Message
andreas

Senior Member

Joined: 07/12/2020
Location: Germany
Posts: 187
Posted: 10:54am 22 May 2023
Copy link to clipboard 
Print this post

Is there a way to turn off a Pico W's onboard LED other than physically scratching the leads?

I know the manual says on page 10 that the GPIO pin is not accessible via BASIC - but it would be nice if there was an OPTION for this to reduce power consumption.

-andreas
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8578
Posted: 10:56am 22 May 2023
Copy link to clipboard 
Print this post

manual page 77
 
andreas

Senior Member

Joined: 07/12/2020
Location: Germany
Posts: 187
Posted: 11:00am 22 May 2023
Copy link to clipboard 
Print this post

  matherp said  manual page 77


You are my darling!  

OPTION HEARTBEAT OFF is it!

-andreas
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 3521
Posted: 05:38pm 22 May 2023
Copy link to clipboard 
Print this post

If you seriously want to save power, turn WIFI off, or use a normal pico.

Volhout
PicomiteVGA PETSCII ROBOTS
 
andreas

Senior Member

Joined: 07/12/2020
Location: Germany
Posts: 187
Posted: 04:26pm 23 May 2023
Copy link to clipboard 
Print this post

  Volhout said  If you seriously want to save power, turn WIFI off, or use a normal pico.

Volhout


Yes, but it's the pico's job to let me know when a burglar is stealing my bike ;-)

-andreas
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5725
Posted: 05:39pm 23 May 2023
Copy link to clipboard 
Print this post

In that case use the pico to disable the wi-fi completely until it's triggered by your alarm device (vibration sensor or whatever). Then switch it on. Even better if there's a GPS on there as well then it can let you where the bike is. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
NPHighview

Senior Member

Joined: 02/09/2020
Location: United States
Posts: 192
Posted: 06:56pm 23 May 2023
Copy link to clipboard 
Print this post

I'm not close to my workbench right now (about 1,000 km away), but how do you disable WiFi programmatically? In the WebMite manual, I see two possibilities to test:

OPTION TCP SERVER PORT 0 (just one service, not the whole capability)
OPTION WIFI DISABLE (though that's implied, not explicit)
Live in the Future. It's Just Starting Now!
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8578
Posted: 07:01pm 23 May 2023
Copy link to clipboard 
Print this post

OPTION WIFI "",""

but whether it reduces power I don't know and it is a permanent option that causes a reset
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5725
Posted: 08:57pm 23 May 2023
Copy link to clipboard 
Print this post

I suppose that if you were to use a non-W version with a separate wifi device you could just use a pin to switch its power off (via a mosfet). You could kill a GPS module the same way.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024