Paul Sutton

g

Pi pico Larson Scanner part 2

Further to the previous post. I spent some time on this, trying to fix the problem. This is mostly re-written.

I have also made the lights run faster as per video below

Code is below.

delay = 0.05 #set delay

I would recommand a delay of 1 second for testing purposes, so it is easier to try and follow the code as it is running.

  • larsonscan.py
#flash on board pico led
# updated 1/7/2023 - working code
import machine 
import utime

#delay = input("Time Delay: ")

#bind LEDs / GPIO pins to variables

ledg = machine.Pin(11, machine.Pin.OUT) #green
ledb = machine.Pin(12, machine.Pin.OUT) # blue led
ledw = machine.Pin(13, machine.Pin.OUT) # white led
ledy = machine.Pin(14, machine.Pin.OUT) # yellow led
ledr = machine.Pin(15, machine.Pin.OUT) # red led 

#turn all LEDs off 

ledg.value(0) #off
ledb.value(0) #off
ledw.value(0) #off
ledy.value(0) #off
ledr.value(0) #off

utime.sleep(3)

#utime.sleep(2) # TWO second delay
#led_onboard = machine.Pin(25, machine.Pin.OUT)

delay = 0.05 #set delay

#ledg.value(0) ledg.value(1)
#ledb
#ledw
#ledy
#ledr

#g b w y r y w b -< repeat so therefore next led is back to g

while True:
    ledg.value(1)#on
    utime.sleep(delay)
    ledb.value(1) #on
    utime.sleep(delay)  
    ledg.value(0)#on
    utime.sleep(delay)
    ledw.value(1)
    utime.sleep(delay)
    ledb.value(0)
    utime.sleep(delay)
    ledy.value(1)
    utime.sleep(delay)
    ledw.value(0)
    utime.sleep(delay)
    ledr.value(1)
    utime.sleep(delay)
    ledy.value(0)
    utime.sleep(delay)
    ledr.value(1)
    utime.sleep(delay)
    ledy.value(1)
    utime.sleep(delay)
    ledr.value(0)
    utime.sleep(delay)
    ledw.value(1)
    utime.sleep(delay)
    ledy.value(0)
    utime.sleep(delay)
    ledb.value(1)
    utime.sleep(delay)
    ledw.value(0)
    utime.sleep(delay)  

Tags

#uPython,#RaspberryPiPico,#LarsonScanner,#PhysicalComputing


MastodonPeertubeQoto sign up

Donate using Liberapay

Muon g-2 experiment finds strong evidence for new physics

Just sharing this video posted by Fermilab to dioide.zone on Peertube. This is a really nice, beginner friendly explanation.

The first results from the Muon g-2 experiment hosted at Fermilab show fundamental particles called muons behaving in a way not predicted by the Standard Model of particle physics. Announced on April 7, 2021, these results confirm and strengthen the findings of an earlier experiment of the same name performed at Brookhaven National Laboratory. Combined, the two results show strong evidence that our best theoretical model of the subatomic world is incomplete. One potential explanation would be the existence of undiscovered particles or forces. This video explains what a muon is, how the Muon g-2 experiment works, and the significance of this result.

REFERENCES

Also discuss further on IRC ##physics on freenode

TAGS

#Physics,#muon,#New,#Discovery,#Science,#StandardModel,#g-2,#Experiment

Donate using Liberapay

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License


MastodonPeertubeQoto sign up

Donate using Liberapay

Muon g-2 experiment finds strong evidence for new physics

Just sharing this video posted by Fermilab to dioide.zone on Peertube. This is a really nice, beginner friendly explanation.

The first results from the Muon g-2 experiment hosted at Fermilab show fundamental particles called muons behaving in a way not predicted by the Standard Model of particle physics. Announced on April 7, 2021, these results confirm and strengthen the findings of an earlier experiment of the same name performed at Brookhaven National Laboratory. Combined, the two results show strong evidence that our best theoretical model of the subatomic world is incomplete. One potential explanation would be the existence of undiscovered particles or forces. This video explains what a muon is, how the Muon g-2 experiment works, and the significance of this result.

REFERENCES

Also discuss further on IRC ##physics on freenode

TAGS

#Physics,#muon,#New,#Discovery,#Science,#StandardModel,#g-2,#Experiment

Donate using Liberapay

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License


MastodonPeertubeQoto sign up

Donate using Liberapay