Discuss How to shield a live wire at 240V ? in the UK Electrical Forum area at ElectriciansForums.net

I will be interested to hear about your progress.


I have had a break from my version. Here in the UK we have the 6 Nations Rugby competition this weekend ( - a deserved victory to Wales against England yesterday) the weather has been so good I have spent time outside instead of in my shed.

I have been thinking (mulling) over whether to experiment with a 940nm array next or to pulse at 10kHz (say) my current 850nm arrays four leds and filter the IR photodiodes output of ambient background and active illumination. So, I have been doodling with circuitry for the pulsed approach next.

I hope you are well and happy.

Best wishes

Marconi
 
Another failure but it teaches me something important! Dont mess with the interferences because they will mess you up !!! I got messed up by interferences so I quit it, this was the conclusion after all the experimentation with the RF boards.
All this experimentation I did with a very good friend from america , and very patient, whom we were talking live through an audio live conference and he guided my --- to do all the experimentation needed, but it failed because I have too much interference in my area where I live. ANd i trust him very much because i can't find any other explanations for the weirdness I got, especially after mounting a long wire antena.
I am back to the alternative, or plan B of the remote, using IR, and now for good.
We will try to make a Tx and Rx for the IR remote. It will involve an opamp (uA741) that I only have.
My request from you, is simple. Do you know how to make such a Tx and Rx?
I never in my life built such things. THis is my first time. And is having its up's and down's but this is experience and I like it.
I will start thinking to something myself.
My friend will come back to me after 2 days from now. Because he is having some stuff to make as well.
I am summoning you , mister @marconi to make it in these 2 days.
So only the schematic you have to make.
THe hard part is for me, to actually test it. I'll search on the internet for free circuits for IR remotes and see what I can built by my own.
What an experience with the RF. Phhh.

These are the IR leds and receivers I have, it it helps : https://www.ebay.com/itm/100pcs-3mm-850nm-LEDs-infrared-emitter-and-IR-receiver-diode-50pairs-diodes/323206187341?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649
1614544276384.png
 
I have just watched your latest video. I gather that you have achieved a Tx which will send short pulses of RF to the Rx. The data signal into the Tx pin looks satisfactory. Could you produce a short video for me showing the signal on your 'scope at the Rx data pin and at pin 3 of the Rx's 555 chip please?

I think you may be giving up on RF too soon. If you wish I will spend some time with you trying to iron out the problems. But first I would like to see the signals at the Rx end.

Please let me know if you wish me to help with the RF remote control. If you do could you also draw the circuitry for me at the Tx and Rx?
 
I have studied your last video carefully and if my eye-sight does not deceive me you are using the 555 as a 'sawtooth' voltage waveform generator at pin 2 - the purple one in my attached diagram. There is too a square wave output of the same period from pin 3 - the yellow waveform.

The 555 is kept in the reset state - outputs pin 2 and pin 3 - at 0V when the reset pin 4 is kept at 0V. Upon receipt of a series of data pulses 0-5-0-5-0....V from the Rx data pin, the diode-capacitor network will charge up until pin 4 crosses the threshold to become active high. Then the 555 is no longer ins reset state and oscillations at pin 3 and 2 begin. When the data pulses stop, the capacitor discharges until pin 4 becomes active low and the 555 is once again in the reset state and oscillations stop.

Pressing the button on the remote will then produce a repetitive pulsed output with almost 99% mark to 1% space ratio and a sawtooth waveform of the same period until the remote button is released.

The circuit is not quite correct for interface to your LM3915 pin 5. What you want to happen is a voltage to be input to its pin 5 which is 0V when the remote is not in use. When the button is pressed the pin 5 voltage must grow from 0 to 5V and remain at 5V until the button is released. Upon release of the button the voltage reduces to zero again. See my second diagram.

We can fix this.
 

Attachments

  • 555wforms.png
    27.3 KB · Views: 14
  • 555wforms2.png
    19.6 KB · Views: 13
https://www.electronics-tutorials.ws/waveforms/555_timer.html

At the Rx rewire the 555 to be a negative pulse triggered mono stable timer. An example is shown in the link above.

At the moment the output of the Rx when fed in to the diode resistor capacitor network produces a positive going pulse ie on button press it goes 0 to 5V when the remote control button is pressed. You need to invert this signal so that it is a negative going pulse ie 5 to 0V.

If you insert an npn transistor in common emitter mode between the output of the diode capacitor resistor network and pin 2 of the 555 this will be achieved. The collector load is say a 10k resistor. To limit the base to emitter current put say a 10k resistor in series with the lead from the capacitor to the base. Pin 2 is connected to the collector. When the transistor is off the collector and pin 2 will be pulled up to 5V. When the transistor turns on it will be pulled down to 0V.

you may need to adjust the resistor and capacitor values so that you obtain a waveform like the red one I drew earlier at the output of the didodecapres network. When you press the remote you want the cap to charge up to 5V and stay at this voltage until the button is releasEd. Check this using you scope. You don.t want to see much ripple.

Ripple Voltage in Rectifiers - Instrumentation Tools - https://instrumentationtools.com/ripple-voltage-rectifiers/
 
hello mister @marconi and good evening.
Thank you for your help! Can you possibly join me on skype for a momment? I have some stuff i cant put online. And also we can verbally communicate. Here is my id on skype: totoq12 and I have the same robot face there as here on this website, very easy to recognize me.
 
A quick sketch of what we discussed. As a first step make this 555 circuit but leave it disconnected from pin 5 of LM3914. Connect your scope to pin3 and observe what waveform is produced and then observe the waveform across C2 each time you operate the remote push button. You may need to adjust R3 and C3 to minimise ripple. The on period ie t1 is determined by R1 and C1.
 

Attachments

  • E19FCC4B-466B-4B4E-8535-7B0FD8E12031.jpeg
    552.5 KB · Views: 14
The idea behind this Rx end monostable circuit is that it causes your wings to illuminate inwards to outwards and then extinguish outwards to inwards after only one short duration press of the remote control button. There is no need to hold the remote button down for long. All the remote control is doing is triggering the monostable into action.
 
ok, I copied the circuit on my piece of paper right now and I notice there is no value for any components, except that 10K in the collector.
Can you be so kind and put there some values for those components please?
 
I have just constructed the 555 Rx monostable circuit and connected to my first prototype in which the column of 8 yellow leds represents the leds of your wings. This circuit is on the right in the video and the right hand red led indicates the received and elongated pulse from the Tx.

On the left hand side is a 555 astable which produces a pulse output at a frequency of about 5-10Hz. It represents the output from the data pin of the Rex when the Tx button is pressed briefly. You can see its red led flicker on and off when I press and the release briefly a push button which turns this circuit on and off. The pulsed output is fed into the diode-resistor-capacitor circuit you have already constructed. The voltage across the capacitor connects to the base of the npn transistor which switches pin 2 of the Rx 555 between 5 - 0 -5 V to produce the negative going trigger pulse to initiate a monostable cycle.
Pin 3 of the Rx 555 is fed to a series CR circuit. The voltage across the Capacitor is Vs which feeds into the comparators which drive the 8 leds.

It works then at least on my bench.

?
ps I could not read R4 in the video So I used 10k. I see in your last post you used 47k. I will do the same.
 

Attachments

  • IMG_0462.mp4
    33.9 MB
Last edited:
R2 and C1 will make t1 about 1 second. You may wish to make this time constant longer. For the testing phase it is rather too short to check operation. I suggest you increase R2 or C1 by a factor of 5 so the pulse output from the monostable is about 5 seconds.

t2 determined by R3 and C3 is a time constant of about 220 x 10exp-6 seconds which is very short. If t1 is about 5 seconds you want t2 to be about 2 to 3 seconds. Easiest thing is to increase R3 or C3. A bit of trial and error until you have a t1 you are happy with and t2 < t1. Assume t2 = R3 x C3 seconds and then adjust until you have achieved t2 < t1.

The idea is for a brief burst of pulses from the Tx to trigger the Rx monostable. This way you conserve the life of the batteries in the Tx.
 
Last edited:
Do ask if there is anything you do not understand. For me, your project is more about an opportunity for me to help you to learn more about the art of electronics.
 
My component values shown in green in the attachment.

I will work on a circuit to combine the rf and proximity signals for input to pin 5 of lm3914.
 

Attachments

  • 69F0687C-B0A5-4EDC-B860-0024DBBD51A9.jpeg
    379.9 KB · Views: 11
Sorry for not responding straight away. My bad. But I was already in a parallel project. I started it in the night before talking with you. I interrupted it while talking to you, and then I got back to it immediate after that.
It was a necessity project. I had that problem when you have only 1 good power supply but 2 tools to be powered from it. So I made this board that is powering them both, from 1 power supply. Pretty neat, right? Again, necessity is the mother of inventions !
Here is a movie with it, a bit long(13min) :
I will get back to the project I discussed with you in a very short while.
 
I have been re-reading the datasheet on the LM3914 because I have been wondering whether it and its associated circuitry is oscillating and being unstable - dependent on the number of LEDs illuminated - worse when several LEDs are on or all are on. Do you think it is oscillating or shimmering or the first LED is slow to illuminate?

I wonder whether the 0V rail has a low enough resistance back to the power supply and whether the 0V and 5V supply to the LM3914 at pins 2 and 3 respectively is not decreasing too much as the LED light. You could do some checks on this with your voltmeter and scope.

Also, it is important for all 0V lines for the LM3914 and to items it connects to are all brought together to one point very close to terminal 2 - see Figure 1.

If it was me I would make up some thicker wire jumper leads with crocodile clips andusing these to parallel the 0V run from the PSU to pin 2 to see if it improved matters. And then repeat with another set taking 5V to pin 3.

Is there any disturbance to the illumination of the LEDs when the relays open or close?

https://www.ti.com/lit/ds/symlink/lm3914.pdf?ts=1614700327590&ref_url=https%3A%2F%2Fwww.ti.com%2Fproduct%2FLM3914

Page 18 'Application Hints'-

Three of the most commonly needed precautions for using the LM3914 are shown in the first typical application drawing showing a 0V–5V bar graph meter. The most difficult problem occurs when large LED currents are being drawn, especially in bar graph mode. These currents flowing out of the ground pin cause voltage drops in external wiring, and thus errors and oscillations. Bringing the return wires from signal sources, reference ground and bottom of the resistor string (as illustrated) to a single point very near pin 2 is the best solution. Long wires from VLED to LED anode common can cause oscillations. Depending on the severity of the problem 0.05μF to 2.2μF decoupling capacitors from LED anode common to pin 2 will damp the circuit. If LED anode line wiring is inaccessible, often similar decoupling from pin 1 to pin 2 will be sufficient.

If LED turn ON seems slow (bar mode) or several LEDs light (dot mode), oscillation or excessive noise is usually the problem. In cases where proper wiring and bypassing fail to stop oscillations, V + voltage at pin 3 is usually below suggested limits.
 
Thank you mister @marconi. Very interesting what you find ! I must confess, that I did read this pdf a tiny bit. I should give it a full read as you just did now. But the problem is a bit more complicated than this, because alone, unlinked to the RF receiver, does not fluctuate or misbehave. ONLY when is linked (pin5) to the output of the RF receiver circuit after the 555 oscilator, ONLY then, it starts oscilating and random patterns in different times when I freshly connect it. So, it is very stable by it's own, but that particular circuit, with that 555 in it, it just messing it up. I will have to make a movie, showing this erroneous behaviour and explaining what I did ... hopefully as complete as I can and if I even remember all the permutations I did. At least the major ones.
There is an exception. When the 555 circuit is not added to the Rx on the receiver, and pin5 is connected directly to this Rx, all is doing fine, not oscilating, but not working as desired as well. I didnt try your circuit yet since I had to do that other projekt, but I will very soon and I will announce you how it went. Im a bit demoralized by these attempts, but I will get over them.
 
I suspect - knowing you a little better after 271 posts (!) - you will carry on :cool:

Would you do one test for me in absolutely the way I describe? Make up a 6 Volt battery and use this to power your wings circuitry instead of the 5V power supply. Completely disconnect the 5V mains power supply (top left of your wings board) and unplug it from the socket. I would like to see how the modules behave when powered by a pure continuous direct current not derived from the mains supply. Four AA batteries should do the trick - four Cs or Ds even better.
 
Solving problems is what engineers like you and me and countless others do to have fun. I hope you like the latest motivating poster to go on the wall in your laboratory.
 

Attachments

  • BEF25230-0DC4-4458-A8E3-DB0519858628.jpeg
    18.6 KB · Views: 7
I suspect - knowing you a little better after 271 posts (!) - you will carry on :cool:

Would you do one test for me in absolutely the way I describe? Make up a 6 Volt battery and use this to power your wings circuitry instead of the 5V power supply. Completely disconnect the 5V mains power supply (top left of your wings board) and unplug it from the socket. I would like to see how the modules behave when powered by a pure continuous direct current not derived from the mains supply. Four AA batteries should do the trick - four Cs or Ds even better.
Thank you for your trust and for knowing me !
And indeed I will not give up. Thank you for your trust so far !
I was thinkin on power it up more than 5V myself as well, andI also remember you suggesting me to do it as well, some times before.
I can not do what you ask me, because I'm afraid of damage it. I did a ton of tests so far, on the breadboard, and right at this moment, is working excellent on 5V. It is drawing a very low current of 30mA to 60mA, the entire board ! I'm affraid of damage it or disturb it's normal functionality, irreversibly and I did work for it a ton of time just to experiment so drastically at this point in time. I've already made a test with my american friend, by connecting the pin9 to +5V and indeed all the leds are lit FullY ! , but... the current is way over my expectations, was around 150 to 200mA. So I revert it back to my usual way of functionality which is dimmer but quite visible and it is not blinding me when in use, that's one of my points keeping the leds at a dimmer intensity. Also probably a major modification in the design itself and component count and values- for example: adding a resistor for each led in the wing, who knows. If that will get me the best functionality of it, then I will do it, but this as a possible example, and not in plan to do it now, haha.
I also have that 5V power supply mounted on the wall, though is not a terrible reason for that alone, but it counts as one.
In the future ! (tada-tadaaaa) , I plan to probably make another wing. THis one here is a prototype how I though alone to make it with my own head, and I admit I have mistakes in it. But I plan to make it with an engineer or someone way better than me, who can seriously make it run at it's full potential/randament with full brightness, with brightness variation, with sensing variation perhaps, all the things I could not resolve right now but it is functional as it is so I can't operate it from this point.
I hope you understand my reasons, and not insist on it. Some things I can do, some I can not. Thank you for your support.
 
The final decision on the way ahead is down to you as the chief engineer of this project.

Here are there reasons why I know using a 6V battery will cause no harm to your modules:

1. As soon as current is drawn from the 6V battery it’s terminal voltage will drop because it has internal resistance;

2. For non of your modules or parts of your modules is the supply voltage of exactly 5V critical. An increase to just over 5V but not more than 6V will not damage anything.

3. There is most likely already more voltage variation already from the 5V mains powered dc supply. Is it a regulated or stabilised power supply maintaining 5V? To what tolerance? Is it providing 5V whatever the current? Have you monitored it?

I understand your caution.

The dc from a battery is pure direct current. The dc from the power supply has ripple, some ac mains superimposed and if it is a switched mode power supply then some harmonics of this conversion process. And on top of all these there is the electrical noise conducted between the mains and 5V because of imperfect insulation.

But do not be pressured by me. Do what you feel comfortable with since it is your project.
 
- Give me your best IR remote circuit that you can think of/know of, and that is working optimal at least 4meter distance.
It's the next thing I really want to try. My reason and my desire is to use multiple (probably 2)remotes with a IR led.
I suspected the RF boards will be problematic but now I know why ! That is called experience, even if it failed on me.
Can you help me on that?
Oh...and if it helps you in any way. my american friend had build (not like you) only the RF transmission + the 555 circuits for both Tx and Rx. For him it worked perfectly. But for me it did not. My point is that even if its working for you there, is not necessarily to work for me the same. Ive already experienced it and im telling you to know how things are. Another point I want to make with this example i mention, is that we must try it until it works, because if we try enough times, it will work. Im talking about the IR experiment we are about to make.
Im thinking to start making my own design but.... im really new to it, so Ill handle it to you first.
This circuit I found the other days. I want to believe it will behave the best and in my parameters I want it as I enunciate it at the start of this new post here.
If you have your own design, Im happy to see it. I kind of finding this circuit, that is a bit hard because of the double power supply I must insert, and I very much want to avoid that. And also at 5V, and not at 12V as this is offering.
But if no alternatives works, then this is the backup.
1614789704636.png
 
Do not be upset but I am taking a break from responding to any more posts. It sounds like you have a helpful and knowledgeable American engineer who can assist you.

Honestly, I cannot devote much more time to this interesting challenge. I have to turn my attention to another project to do with solar electricity for my brother-in-law.

When I have time I will/may return to my version of your challenging project.

I repeat we part for now but not for ever so to speak.

Good luck! Please do continue to post your progress because the thread you started now has a few thousand hits so many folk are reading it on the Electricians Forum.

?
 
Well, believe me or not (I get the feeling you don't, haha) , I do care about my project to make it as close as I imagine it in the first place. I agree, it is time consuming and hard, especially for me alone. Also slow. Well, not that alone, counting your 2 guys help. But still, I only have 2 hands and I have to keep focused on what is getting me closer to my final objective.
I agree with you. Breaks are good; and Im telling you a secret, breaks are also contributing to the good result as much as the hard work. I am personally take breaks, not so drastic, but more small and often, I kind of managing them. I also have a routine. That's why I'm slow. Also my inexperience in a lot of things, but that is another discussion.
I'll probably open another discussion on IR remote alone, since here is "too much" from what I get it... and I kind of agree, I kind of talked about everything on this way too long thread. We'll see.
I also thought remotes are easy. It looks they are not that easy. Very weird.
Thanks for the help so far. And have fun with that sport play on tv you said you are watching these days.
Cheers mate.
 
Good evening q12x. I am wondering how your project has progressed. I have been busy analysing a 20kW commercial solar electricity project. Have you thought about a career in renewable energy?

regards

marconi
 
"I am wondering how your project has progressed"
Oh, hello mister marconi !
I literally didn't check this website for awhile sorry for that, from 2 reasons, and I hope is understandable:
1-I was working slowly and nothing really to update with, and 2- I didn't made too much progress.
Me and my american friend- sorry to mention him but its how reality stands, yes, I get some help and im very grateful I have it to be brutally honest. And you are one of my friend since you got involved into this crazy project of mine.
So... the update so far, is that I am expecting some components to arrive from my friend from america, but in this time while I am waiting for them , I built with my friends help as well, a IR receiver and transmitter only on the breadboard so far. And we got splendid results, especially for the range from the IR to my palm in front of it and back to the receiver. Exactly as you did it, but with new circuit.
The real problem that remains is the interference from the window, that is directly in front of the wall, and in front of that panel and it's IR sensors. So..at any time, any wild IR light, from the sun or somewhere else, might switch this thing. And... hmmm... I am in a bit of depression.
The thing is, with these things, you always get the bad results from them, and if you're very smart or very lucky (or very persistent like I was and still am), you will get some good results as well.
Yes, it is hard as it gets. It's a challenge.
Have you thought about a career in renewable energy?
I wish to be able to work in such fantastic domains like electronics or electrics but I have no paper to certify the validity of my knowledge.... so it's a fantasy to even hope. I know my place very well and Im fine with it, for a long time. What are you thinking about? DO tell me, you made me curious.
 
Last edited:
Hello Mr Inventor. Good to hear from you again. The solar project has been decided on to go ahead but we need permission to connect it to the mains supply: this we have applied for. This means I have time to pick up where I left off with my version of your proximity switch.

l have an idea to control my ruler of lights based on whether the voltage from the sensor is increasing, decreasing or constant. This is to say that the actual voltage from the sensor is not important but rather whether it is going up, down or steady over two samples of it spaced out in time. It is being constructed at the moment. If you like a sensor of hand motion rather than hand proximity.

Are you in good form and making progress?
 
Last edited:
Once again a nice clear video which shows your progress and current challenges. I liked that you have started to prototype circuits on the breadboard before moving them to the larger wings board. I'd like to see a ruler used to confirm your distances as I have done - we don't want any 'fisherman's tales'! ?

I will plough on with my project today and over the weekend.

Regards

Marconi
 
"Once again a nice clear video which shows your progress and current challenges."
Thank you that you like it. And good job to you as well with the breadboard.
 
These are the stages I am working through with my version of your project:

1. Movement sensor to control the ruler of LEDs - my work at the moment, about 80% complete and then thorough testing;
2. Build pulsed LED array with 940nm torches* and associated pulsed LED receiver to produce Vs - pulsed sensor to distinguish torch reflections from steady (albeit slowly changing) ambient IR ;
3. Ambient IR monitor and controller to adjust for ambient IR - circuit built but yet to be fully tested and developed further as required.
4. Beep/click sound signal each time a ruler LED turns on/off.

* My current sensor arrays are 850nm.
 
This is a video demonstrating my version 2 of the ir proximity switch which includes the bleep/click sound as each ruler led turns on or off. As I have run out of space I will do version 3 the pulsed ir on a new breadboard. Quite a lot of time was spent on eliminating oscillation of an led if the hand stopped at a threshold or went through a threshold slowly.
 

Attachments

  • FullSizeRender 4.mp4
    72.1 MB
This is a video demonstrating my version 2 of the ir proximity switch which includes the bleep/click sound as each ruler led turns on or off. As I have run out of space I will do version 3 the pulsed ir on a new breadboard. Quite a lot of time was spent on eliminating oscillation of an led if the hand stopped at a threshold or went through a threshold slowly.

Very nice Marconi
 
Very nice Marconi
I am a digital baby. So I aim to turn any problem into 1s And 0s as early as practical. Thereafter one has so many more options for signal processing. And it then becomes logical and mathematical which suits me. Analogue electronics is really an art which I have not had the opportunity or inclination to master. ?
 
Thank you for the video. You got good results. It's nice to hear the clicks.
It looks like it is finished. Can you make a circuit for me, with everything you have there? Thank you.
And this is my progress so far. Not that good.
 
Last edited:
q12 Good morning. If viewers were awarding marks you would receive high ones for the neatness of your construction whereas I most likely be told 'could do better'! I tend to be impatient and rush to see if something works and if it does I then leave it as is and move on to the next part. You are methodical and take the time to accurately record your circuits. I spent a good 2 hours trying to work out why my latest version did not toggle the lamp reliably. It turned out I had failed to connect the JK inputs to +5V ie logic 1 even though I had connected J and K together.

I am going to design next my 940nm pulsed sensor array and see how it performs. The major effort of version 3 is to maintain performance in spite of background IR from things inside the room and sunlight. I will keep you posted once I have something worthwhile to show. For this version I am using a better comparator LM311 which has the nice feature it can be 'strobed' ie told when in time to compare its inputs and produce an output - clearly necessary for a pulsed IR sensing system.

https://www.ti.com/lit/ds/symlink/lm311-n.pdf?ts=1617540813359&ref_url=https%3A%2F%2Fwww.google.com%2F

My versions 1 and 2 have used the LM339:

https://www.ti.com/lit/ds/symlink/l...rl=https%3A%2F%2Fwww.ti.com%2Fproduct%2FLM339

Happy Easter.
 
Last edited:
Happy Easter.
Thanks that you liked my "failure". Is kind of working as I said, but not that efficient (1 led always On), and only in night, when is out of day light. Also it is sensitive to my desk lamp as well, it is probably way too much amplified. But it works, in its limited way. It was more as an exercise with opamps for me, a practical one. The most used way of an opamp as I could seen it so far, is as a comparator. Then the other wonderful exceptions ways. At least is how I perceive it, now in the beginning. I must play more with it in the future.
Right now, I am planning on tweaking the amplification of the SCM - 2n7000, the one with the npn tr T3 and its led, somehow to make it work with the lm3914 pin 5. Currently, as a reminder, is only working directly from the Source of 2n7000 to pin5, because it is grounded by a 10k resistance R4.
1617647906957.png


My good american friend has sent me already an IR detector that has a chip in it, very advanced component and very miniaturized, and it will receive and convert automatically the signal from any remote control or signal generator. It is quite common but is a bit more expensive than a simple direct IR receiver like the black 3mm ones I have. The package is on the way, and we all wait for it's arrival.
Until then, I will tweak what else can be tweak.
Thats why I asked for your circuit, to see where and how did you linked the buzzer. I can not understand from your real picture, since its full of wires and little "black boxes".
 
The click is produced by comparing the number of LEDs illuminated at one instant - let us call it time t - with the number illuminated a short time T earlier in other words at t-T. My version 2 is using synchronous logic circuitry driven by a 'clock' running at several kHz which produces my clock ticks. It is bottom left with a single faint red LED next to it. I can number the ticks since the power up using the letter n, so a sample taken at the nth tick of the clock is Sn, and n is increasing from 1 to infinity.

As there are eight LEDs on my ruler, I sample at regular time intervals of T, to see which ones are on or off. This produces an eight bit sample word viz Sn= ( L1, L2, L3, L4, L5, L6, L7, L8). If an LED is lit Lx = logical 1 otherwise Lx = 0.

I then load Sn into an 8 bit register called P. Several clock periods later - T - the contents of P are loaded into another 8 bit register Q.

After another interval of T another sample, Sn+1, is taken of the LED ruler state, Sn+1 and loaded into the register P. The content of P is now Sn+1 - the latest sample - and the content of Q is Sn - the previous sample. After a further interval of T the content of P is loaded into Q. And this sequence repeats over and over again.

Registers P and Q therefore hold samples taken at Sn+1 and Sn respectively as n counts upwards. I could write this as Sn and Sn-1 which makes it clearer with is the latest sample Sn and which was the previous sample Sn-1.

An 8 bit logical comparator compares the contents of P and Q by doing the subtraction X = P - Q. If X = 0 then Sn = Sn-1 which means there has been no change of the state of illumination of the LEDs on the ruler over the interval T. If X does not equal 0 then more or less LEDs are illuminated now than there were before.

https://www.ti.com/lit/ds/symlink/sn54ls684.pdf?ts=1617648996931&ref_url=https%3A%2F%2Fwww.google.com%2F

The logical state of X then is a signal on whether the number of LEDs which are lit is steady (X = 0) or changed over successive time intervals T.

I use the X signal to gate a 1kHz square wave to the sounder to make the beep. Actually, because X is such a short duration pulse since T is actually very short in time I send X to a pulse stretcher (a monostable) to produce a longer gate pulse. This creates the click sound every time there is a single change of state - on to off or off to on - of the most significant LED.
 

Attachments

  • 7C42E14E-23C7-44E2-AB76-1933FCA5AB62.jpeg
    266.8 KB · Views: 16
Last edited:
q12 Some time ago you did not have in front of you a design of IR continuous wave active passive sensor which would gradually light your LEDs in response to the proximity of your hand. And now you do. To my mind then, describing your latest model of led wings as a ‘failure’ is unwarranted.
 
q12x Good morning. Just a thought on your latest IR sensor. The photodiode is operating in the photovoltaic mode which is ideal for low light levels because the dark current noise the photodiode produces is minimised. Any diode current flow is then mainly due to photons hitting the photodiode.

It may be that at the moment the single IR LED is not providing sufficiently intense illumination of your hand in front of the sensor which is compensated by using a high gain cascade of op amps (1) and (2) - (A = 100 x 10 = 1000). Of course this also means that ambient light from other sources will be detected and similarly amplified by a 1000.

What about brightening up the IR light you shine by having 2, 3 or 4 IR LEDs placed around the single IR photodiode? One might then reduce the gain of op amps (1) and (2) which would make your sensor less responsive to ambient light. The sensor would then mainly be reacting to the reflected light from the IR LEDs and tend to ignore ambient IR light. Worth a try? The second image shows my 850nm array of 4 ir LEDs and 4 pds.
 

Attachments

  • q12irsensor.png
    16.3 KB · Views: 9
  • EB9E420E-E1A7-434C-AF40-06EF5826A546.jpeg
    172.7 KB · Views: 13
Last edited:
Hello mister @marconi and thank you for your answers.
I kind of understand.... what you did there with the buzzer circuit, but PLEASE, make for me a simple circuit diagram. All I need is the output signal (pin1 to 10 of LM3914, or in other words the leds negative pins) and the input signal, (from what I understood, you used a comparator IC and a clock (quartz? or RC?)). But I still dont understand when the click sound is activated and by who. Explain in very simple words, not math words. Im an artist, I deal better with visual explanation than weird math algorithms explanations. Sorry but im not a math guy. Make me a short diagram please, draw it as simple and explicit as possible on paper and scan/photo it. Thank you ! I really appreciate your effort so far.
The other subject, the IR leds, YES, I will have to test more of them as you just did on your board. But again, this was more an educative circuit for me, since im quite new to both IR and opamps. Now im a bit more familiar with them. I will make it in the near future.
 
I hesitate to start designing circuits for you because I then become 'responsible' for them by working with you until they perform as desired when connected to your other modules. There is no point in copying the way I produced my 'buzzer' circuitry because my versions of your project are mainly using digital ics and techniques and as you can see from my video you do not have room. If you want me to guide you through the design process for something to work with your wings then that would be preferable to me. I spent quite some time making sure the LEDS on my ruler - so your wings LEDs - cleanly turned on or off without any fading or oscillation to ensure a single click each time there was a single LED change. As a fact your LM3914 fades the turning on and off of adjacent LEDs - it says so in the datasheet; I suspect - forgive I may be wrong - that you still have oscillations. Oscillations will be seen if you very slowly move your hand towards or away from the sensor or if you hold your hand in a position where adjacent LEDs turn on and off/off and on. Perhaps you could investigate.

In outline you would need to build a tone generator to drive the sounder. I suggest with a 555 chip. Is your sounder a piezo electric one and if so is it passive or active? If it an active one then it has an internal tone generator so you would not need to build a separate 555 tone generator. Mine is a passive one. Assuming a passive sounder driven by a 555 tone generator, we could use the trigger pin 4 to turn the tone on and off easily with a negative going pulse.

Next step would be to generate a negative pulse for each of the LED driver outputs of the LM3914 and then to combine them as logical OR (ie any driver output) to be used to turn the tone generator on briefly and thereby make the click sound. The sort of circuit I envisage for the negative pulse generator is a simple CR differentiator across each LM3914 LED driver transistor. Something like I have drawn in the attachment.

How does this sound to you?
 

Attachments

  • 5BBC7DC4-60AA-4579-B0A8-46EFDF6822F0.jpeg
    250.6 KB · Views: 11

Reply to How to shield a live wire at 240V ? in the UK Electrical Forum area at ElectriciansForums.net

Similar Threads

Metal building with living quarters the panel is on the outside and about 20 feet away from new build that will be 2x6 what type of shielded wire...
Replies
3
Views
572
I am trying to understand how a relay system works and have designed a circuit and a ladder diagram all as attached for an 8 PIN relay, a current...
Replies
14
Views
598
I bought this house a couple months ago. It was built in 1952 (same as me) but has been rewired with yellow 12 awg Romex dated 2007. Looks like a...
Replies
7
Views
559
I want to make some electrical upgrades to my detached garage. I want to update the subpanel in the detached garage, and I want to add a 240V...
Replies
3
Views
754
I removed my baseboard electrical heaters (1981 installed) due to finishing off the room. When I had a new AC ductwork installed they changed the...
Replies
2
Views
433

OFFICIAL SPONSORS

Electrical Goods - Electrical Tools - Brand Names Electrician Courses Green Electrical Goods PCB Way Electrical Goods - Electrical Tools - Brand Names Pushfit Wire Connectors Electric Underfloor Heating Electrician Courses
These Official Forum Sponsors May Provide Discounts to Regular Forum Members - If you would like to sponsor us then CLICK HERE and post a thread with who you are, and we'll send you some stats etc

YOUR Unread Posts

This website was designed, optimised and is hosted by untold.media Operating under the name Untold Media since 2001.
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock