Search found 12 matches

by cnmcdee
Sat Sep 25, 2021 9:28 pm
Forum: Raspberry Pi microcontroller boards
Topic: Print message when same button is pressed
Replies: 8
Views: 3451

Re: Print message when same button is pressed

Code: Select all


buzzer_enabled = True

def nasty_buzzer():
	if buzzer_enabled:
		print("Nasty buzzer")
		
if button3.value():  # Silence your buzzer.
	buzzer_enabled = False

by cnmcdee
Sat Sep 25, 2021 9:00 pm
Forum: Raspberry Pi microcontroller boards
Topic: Print message when same button is pressed
Replies: 8
Views: 3451

Re: Print message when same button is pressed

Hello, What I'm trying to do is I have two buttons and a active buzzer. If I press B1 I need it to Print("Goto button 2") and I would proceed to B2 and it would print Print("Goto button 1") and all is good BUT here is my issue. If I press B1 and then I press B1 again I need to Print("Error you doub...
by cnmcdee
Wed Sep 22, 2021 11:38 pm
Forum: Raspberry Pi microcontroller boards
Topic: What *really* happens when you 'import lib'
Replies: 1
Views: 1117

What *really* happens when you 'import lib'

If one does: MicroPython v1.17 on 2021-09-02; Raspberry Pi Pico with RP2040 Type "help()" for more information. >>> import os >>> >>> That executes fine, but would imply that the os library module file would need to already be on the chip no? If this is the case then why does a os.listdir() not show...
by cnmcdee
Tue Sep 21, 2021 11:22 pm
Forum: Raspberry Pi microcontroller boards
Topic: Pico access via WiFi (serial bridge)
Replies: 1
Views: 3526

Re: Pico access via WiFi (serial bridge)

That is highly impressive and I went off immediately to study and learn about socat. Thanks for that post.
by cnmcdee
Tue Sep 21, 2021 11:10 pm
Forum: Raspberry Pi microcontroller boards
Topic: NRF24L01 with a Pi Pico
Replies: 20
Views: 51255

Re: NRF24L01 with a Pi Pico

If anyone is ~super~ ambitious one could write their own bit-bang to these SPI specs starting on Page 19:

https://www.sparkfun.com/datasheets/Com ... ec_1_2.pdf
by cnmcdee
Tue Sep 21, 2021 11:02 pm
Forum: Raspberry Pi microcontroller boards
Topic: NRF24L01 with a Pi Pico
Replies: 20
Views: 51255

Re: NRF24L01 with a Pi Pico

Welcome to the not-working NRF24L01 club. The first thing I did was try to get it to read the internal registers inside it before trying to transmit anything. I always start there. You can see in this thread people have trouble trying to read the registers via a MicroChip Pic code: https://www.micro...
by cnmcdee
Tue Sep 21, 2021 10:56 pm
Forum: Raspberry Pi microcontroller boards
Topic: Pico keeps on blowing up
Replies: 6
Views: 7107

Re: Pico keeps on blowing up

Opto isolators are most often used to isolate high voltage circuits. They're not the greatest voltage level shifter/relay driver since they usually have a current transfer ratio of less than 1, meaning that it needs more drive current than it outputs. LED's as used in opto isolators also degrade wi...
by cnmcdee
Sun Sep 19, 2021 11:06 pm
Forum: Raspberry Pi microcontroller boards
Topic: Pico keeps on blowing up
Replies: 6
Views: 7107

Re: Pico keeps on blowing up

I would use an optical isolater. I would never do any direct current driving past a couple leds, this 3.6V device I just do not want it to be current loading, just leave it to do the thinking. Strangely I thought I was the only one who could not find the current load per pin, and this posting confir...
by cnmcdee
Sun Sep 19, 2021 4:25 pm
Forum: Raspberry Pi microcontroller boards
Topic: Cannot Unstuck Raspbery Pi Pico
Replies: 6
Views: 7157

Re: Cannot Unstuck Raspbery Pi Pico

I found the solution and unfortunately that Pico is forever stuck in it's own little world whatever it is doing. When you are developing - never name your file main.py or boot.py boot.py loads first and then main.py loads and runs second. If you put something highly aggressive (like toggling a pin e...
by cnmcdee
Sun Sep 19, 2021 3:10 pm
Forum: Raspberry Pi microcontroller boards
Topic: Cannot Unstuck Raspbery Pi Pico
Replies: 6
Views: 7157

Cannot Unstuck Raspbery Pi Pico

Working (runs a led-blink) and something else : and USB connection dmesg -w output: [ 3497.923509] usb 2-1: new full-speed USB device number 50 using xhci_hcd [ 3498.050990] usb 2-1: New USB device found, idVendor=2e8a, idProduct=0005, bcdDevice= 1.00 [ 3498.050993] usb 2-1: New USB device strings: ...