- -- - - - - - - - - - - - - - - - - - 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 29: Line 29:
  
 
(16 bytes - 128 bits)
 
(16 bytes - 128 bits)
 +
 +
 +
================
 +
 +
#is this 5V or 3.3V ports  ?
 +
 +
# 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 ?
 +
 +
#will it need wave shaping
 +
 +
#or will opto signal work ?
 +
 +
xxxxxxxxxxxxxxcc
 +
 +
clock to AND gate
 +
 +
data to AND gate
 +
 +
.  to button (wait-release)
 +
.  led (on-off) drives optoisolator
 +
.
 +
 +
=============
  
  

Revision as of 13:28, 2 September 2021


polling is probably better than interrupts


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 .

=

--