With four 430R resistors in series with the opto LED you will only get 6mA of current - the datasheet suggests 50mA. However, as I said on your previous thread, I don't understand why this is so complicated. Why not connect the PIR output direct to the Arduino input?
Mike.
That was kinda my point. Why is there 4 resistors when 1 will do? Why is the LED current only 6mA? Why not use a 3.3V Arduino?The OP is new to this stuff.
The 'OP' is the other person?'The opto's aren't a big a deal. The OP is new to this stuff.'
But the system has been taken so far down the road, through breadboard
and PCBs the plan is to the stay the course with the schematic dated 200812
rather than redesign the system at this stage.
1. I eTech's rely, post #3 :
The 'OP' is the other person?
2. Just to be clear the drawing of the Sensor module PCB
is refactored herewith.
View attachment 127569
This correctly reflects the direction given in post #4, right?
Based on feedback will order new sensor PCBS, but looks like
I could, first, take an Exacto blade and cut the trace between R16
and the ground fixed block terminal. And second, run a jumper
wire between R16 and the plus 12v post of the terminal block.
Still going to order new PCBs but this rig would be a way
of testing the refactor.
One last thing, when the sensor board is refactored, the way
POCADAL 200812 (post #1) is read, the output from R18 and
R16 at the posts marked 'PIR Rtn' and '+PIR Out' should be
about twelve volts, right? That is, when the Sensor board is
supplied 12 volts then when the PIR is activated, with ground
probe of the DMM connected to the 'PIR Rtn' post and the plus
DC voltage probe connected to the '+PIR Out' post the reading
should be about 12 volts.
Thanks.
Allen in Dallas
But looking at the schematic it seems to say at
PIR1 rtn
H=12.0=Motion
L=0.0v= No Motion
(blue font)
So this seems to contradict the test plan.
The test plan says 'no motion 12v' while
the callout on the schematic '12.0=Motion'.
7. The DMM should read less than 0.7 vdc with motion detected (doesn't need to be exact).
7. The DMM should read less than <7.0 vdc with motion detected (doesn't need to be exact).
Hello eTech and the ETO forum,
Finally got the chores done and got back to the bench.
Refactored the Sensor PCB, loaded it up and performed the
seven step test.
The outcome from the no-motion test is as expected, 12.39 volts.
View attachment 127654
However the read out from the nine seconds after motion is detected is 7.53, not .7 (plus or minus) that was expected.
It was conjectured that some mistake had been made. A second board was loaded.
Using a one sixteenth inch drill bit with a hand tool the R16 is disconnected from the voltage plus terminal.
View attachment 127655
It was checked to make sure there was no continuity between R16 and ground.
Found the lead from R16 could be insulated and connected to the V+ power fixed terminal.
View attachment 127656
This is how the board looks with with all parts loaded except the PIR and the capacitor so the PCB can be seen before the cap and the PIR obstruct the view.
View attachment 127657
Performed the test on the second board:
Ground probe at power source ground and +voltage probe connected to the
jumper between PIR Rtn and +PIR Out, before movement at PR.
Expected result: 12 volts
Actual result: 12.39 volts
Ground probe at power source ground and +voltage probe connected to the
jumper between PIR Rtn and +PIR Out, after movement at PR.
Expected result: .7 volts (+ or-)
Actual result: 7.83 volts
It seems like the difference between .7 and 7.53 or 7.83 is not within tolerances.
So guess maybe the same mistake was made on both boards. Have checked to make sure that the
PCB shown in the photo above marked 'OCADAL (PirOptoCouplerArduinoDr' matches the
drawing of the board titled 'Sensor 201020' shown in post #7.
Hello gophert, eTech and the ETO forum,
The Arduino Shield Main Board for the Staircase project
was designed over a month ago. Last night when the
Sensor module was tested positive a look at the at
the Main board/shield was taken to begin connecting the Sensor modules
and LED modules for staircase mockup.
There were several things that did not make any sense
on the PCB marked 'POCADAL Main Board 201024' in
View attachment 127671
post # 13 above and copied here. Among other things what is the function
of the terminal blocks (six positions at top
and three positions beneath) to the left of
pads numbered vertically from 2 to 10?
Today, Monday I had the day off from work so
'POCADAL Main Board 201024' shown in post # 13
was studied to make sure it was an implementation
of the schematic dated 201012 in post #1 of this thread.
This is a sort of a schematic/PCB drawing used to
analyze the schematic deployment to a PCB.
View attachment 127670
Today it was realized that in late Aug in the thread
called PIR to Arduino to Transistor and LEDs
at post #48 eTech suggested that the
Link to PIR to Arduino to Transistor and LEDs post #48
opto-couplers be moved from the Sensor modules
to the Shield/Main board because the function
of the opto coupler is to reduce EMI in
the long runs between the Sensors and the
Shield. So the FTBs (fixed terminal blocks)
at the headers going thru pads 2 to 10
to the Uno were obviated by the FTBs
marked S1-S8 near the 430 ohm resistors.
That is, the FTBs on the Sensors modules
were moved to the Shield but I forgot
to remove the FTBs designed to receive
the wires from the sensors.
Other 'Oh shoots' and 'I-don't-
believe-I made -such-dumb-ass -
mistake's' were found and refactored.
So if you have a chance, please
check out the the drawing marked
POCADAL Arudino Shield and Main Board
201026 posted herewith above.
Especially concerned about the connection
of the opto-coupler collector connection to the Arduino
5v supply via R8 22k resistor.
In building a shield for the Arduino
one of the toughest parts was getting
the pads in the PCB to line up with the pin
headers on the Arduino. It took
a set of digital calipers and a lot of time
but the alignment was achieved. What
was missed was the top of the USB
port and the power barrel jack is
higher than the pin headers. That is why
in the PCB drawing in post #13
('POCADAL Main Board 201024') there
are two leave-outs at the bottom of the board
between S4 and S5 and between S6 and S7.
The plan is to based on the always excellent
feedback from the ETO forum, redesign 'POCADAL Main Board 201024'
this Saturday and re-order a new board.
Thanks.
Allen in Dallas
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?