- -- - - - - - - - - - - - - - - - - - TrB.jpg Margaret.png Jkb.jpg JoeD.jpg Edbatchelor.jpg JimB.png DAD-TINT.JPG C03515.jpg

Difference between revisions of "Talk:Soft Start"

From Batchelor-s
Jump to navigationJump to search
m
m
 
Line 2: Line 2:
  
 
polling is probably better than interrupts
 
polling is probably better than interrupts
 +
 +
display
 +
# make an array A(1) -- A(8)
 +
 +
set display to request input one number at a time
 +
 +
for 8 numbers
 +
 +
convert the number to binary
 +
 +
step out each bit one at a time
 +
 +
 +
------------------
 +
display
 +
 +
# to fine tune the output
 +
allow changing any one of the numbers
  
  

Latest revision as of 10:42, 23 October 2021


polling is probably better than interrupts

display

  1. make an array A(1) -- A(8)

set display to request input one number at a time

for 8 numbers

convert the number to binary

step out each bit one at a time



display

  1. to fine tune the output

allow changing any one of the numbers


perhaps set up a string in memory (how)

read bit

test input

if hi output bit or test input

if address > 127 goto test input

  1. last bit should be 1
  2. repeat - full ON

bump address

if > 127 then test input

IF ^C end #or clean up

goto read bit

xxxxxxxxxxxx

enter 16 numbers from keyboard

(16 bytes - 128 bits)


====
  1. is this 5V or 3.3V ports ?
  1. AND gate may need 5V

from gpiozero import LED, Button

led = LED(17)

button = Button(2)

while True:

.    button.wait_for_press() #clock

.    led.on() # drive to opto

.    button.wait_for_release()

.    led.off() #how long ON ?

  1. will it need wave shaping
  1. or will opto signal work ?

xxxxxxxxxxxxxxcc

clock to AND gate

data to AND gate

. to button (wait-release) . led (on-off) drives optoisolator .

=

--