Tell us about yourself!
USB to Serial TTL V2View Instructable »
Thanks for the feedback. I did not know about the problem with the 400 degrees. Normally I only use 300 (lead) and 350 (silver) so it would be OK. But good to know.
Universal Soldering StationView Instructable »
Illuminated CubesView Instructable »
About the 40 kHz --> 10 kHz. If you look in the source file you find this: ; The PWM must generate a frequency of 40 kHz = 25 us period time ; Register PR2 holds the PWM Timer Period using the following formula: ; PWM Period = (PR2 + 1) * 4 * Tosc * Timer2 prescale value where Tosc ; Tosc = 1/Fosc and Fosc = 4 MHz.Setting the prescaler to 1 and PR2 at 24: ; (24 + 1) * 4 * 1/4.000.000 * 1 = 25 us. Period Cycle = 40 kHz T2CON_TOUTPS = 0b0000 ; Postscaler is 1:1 (no postscaling). T2CON_T2CKPS = 0b00 ; Prescaler divide by 1 PR2 = 24 ; For this PIC this value brings it closer to 25 us.By changing the PR2 value you change the frequency. 10 kHz equals 100 us (0.0001 seconds) which means:0.0001 / (1/4.000.000) / 4 = 100 so PR2 must be 99 (PR2 + 1 must be 100).For the Solar P…
About the 40 kHz --> 10 kHz. If you look in the source file you find this: ; The PWM must generate a frequency of 40 kHz = 25 us period time ; Register PR2 holds the PWM Timer Period using the following formula: ; PWM Period = (PR2 + 1) * 4 * Tosc * Timer2 prescale value where Tosc ; Tosc = 1/Fosc and Fosc = 4 MHz.Setting the prescaler to 1 and PR2 at 24: ; (24 + 1) * 4 * 1/4.000.000 * 1 = 25 us. Period Cycle = 40 kHz T2CON_TOUTPS = 0b0000 ; Postscaler is 1:1 (no postscaling). T2CON_T2CKPS = 0b00 ; Prescaler divide by 1 PR2 = 24 ; For this PIC this value brings it closer to 25 us.By changing the PR2 value you change the frequency. 10 kHz equals 100 us (0.0001 seconds) which means:0.0001 / (1/4.000.000) / 4 = 100 so PR2 must be 99 (PR2 + 1 must be 100).For the Solar Panel I used something like this but I used 3 NiMH batteries so the maximum power supply is about 3.6 Volt so I ordered a panel that is able to produce 5 Volt (there is voltage drop over the schottky diode between the solar panel and the batteries that you need to take into account.Diy Voor Batterij 5V Zonnepaneel Mini Zonnestelsel Telefoon Solar Cell 5.5V Laders Draagbare 70mA 80mA 100mA 110mA 160mA 180mA 291mA|Zonnecellen| - AliExpress
Thanks for the update. What you can do for test is to temporay lower the frequency temporary to e.g. 10 kHz. This is a tone you can hear but it will not be that loud since it is not the resonance frequency of the resonator (see the datasheet on how much output it will produce at that frequency). For the solar panel: If you use 4 batteries you have to us a solar panel with a higher voltage. Also make sure you use rechargeable batteries that have low leakage current (always ready batteries). My version is already working for months without the need to recharge the batteries. You also stay safe and healthy!
Hi,I was wondering how this was progressing. Did you finish your project and did it work keeping the cats out?
Hi Marcelo,Thanks. I think you can use any other type as long as the resonance frequency is 40kHz and that the it can handle a voltage swing of twice the supply voltage (so around 2*3.6 Volt) which I think will not be a problem.
Three Electronic CandlesView Instructable »
Hi Paul, they have to be connected in series otherwise it would not work. The LEDs will not work on 1.2 Volt. If you look at the schematic diagram of the Tea Light Clone you also see them connected in series.
Hi Paul,At Conrad: https://www.conrad.nl/p/emmerich-13-mignon-zlf-spe...This is it the one I used.
Hi Ampdb1. You can only detect the 40 kHz by using a piezo receiver (with electronics). With your scope you have to measure the signal over both pins of the piezo transmitter (so the ground of your scope to one pin and the probe of the scope to the other) this because the signal is doubled by the voltage on both pins change at the same time. So with a 5 Volt supply the voltage swing over the piezo buzzer should be 10 Volt. I only used 2 buzzers because I had them and wanted to produce more sound. It is not a scientific choice. If you have a 6.2 Volt Sonar panel I would recommend to use 4 NiMH batteries so that you have a higher voltage swing over the piezo buzzer. And then the question does it work? You only know if you have a cat walking by so I am not sure. I am from The Netherlands and…
Hi Ampdb1. You can only detect the 40 kHz by using a piezo receiver (with electronics). With your scope you have to measure the signal over both pins of the piezo transmitter (so the ground of your scope to one pin and the probe of the scope to the other) this because the signal is doubled by the voltage on both pins change at the same time. So with a 5 Volt supply the voltage swing over the piezo buzzer should be 10 Volt. I only used 2 buzzers because I had them and wanted to produce more sound. It is not a scientific choice. If you have a 6.2 Volt Sonar panel I would recommend to use 4 NiMH batteries so that you have a higher voltage swing over the piezo buzzer. And then the question does it work? You only know if you have a cat walking by so I am not sure. I am from The Netherlands and I purchased the piezo buzzer at a Dutch (it is actually German) company: https://www.conrad.nl/p/murata-ma40s4s-ultrasone-zender-1-stuks-reikwijdte-max-5-m-frequentie-max-40-khz-x-h-99-mm-x-71-mm-506195The price is 5 Euro/piece. If you have more questions, let me know.
Hi Marcel, 👍
I really do not know. You could give it a try :-)
I do not know to which frequencies squirrels can hear sound. I assume you do not want to hear it yourself. But by a software change you can create any other frequency but it is important to have the correct piezo buzzer since you have to use them at their resonance frequency.
Hi kmpres. Yes dogs could hear it since they can hear up to 45 kHz but the range of the repellent is limited since high frequency sound does not travel that far.
I hope that others will build it so see how well it works since I do not have a camera to capture the moment. I could only notice if the cat stays away.
You're welcome. Now lets see if it works but I need a Cat for that :-)
Very nice project, I really like the recording with the clock showing the change in time to demonstrate that it is not stationary.
Nice project. In order for your LEDs so live a little bit longer you need a current limiting resistor in series. A standard current for a LED is 20 mA. In your design the current will be higher which may destroy your LEDs if they stay on for too long.
Cat RepellentView Instructable »
Digital Controlled Linear Power SupplyView Instructable »
USB to Serial TTLView Instructable »
Illuminated PresentsView Instructable »
Thanks! I assume you had the programmer from Wouter? It is very limited in which PICs it can program so nowadays the PicKit3 would be a good choice (or you build this project :-)).
I did not know the dwarf board of Wouter van Ooijen. I had ordered 5 JALPIC One boards of which I kept 2 and gave away the other ones so I have no spare. Note that the board actually needs a small redesign since the voltage regulators are a bit in the way if you plug a Arduino extension board on top of it (you can bend them sideways to prevent this). I designed a new board but did not yet upload it to GitHub. You can order the board yourself if you send the board file to a pcb manufacturer. The current file for manufacturing the board can be found here:https://github.com/jallib/jallib/blob/master/proje...Good luck!
Hi Keslin,I did not see your comments (got no e-mail from Instructables). To answer your question. The light has to be put on (or off) by the push-button and it stays on when there is movement. I use only one motion switch for detection of motion. When there is no motion for 10 minutes it switches off. I was thinking of adding an LDR to measure the ambient light as for the device that it switches on automatically (so when there is motion and it is dark it turns on so I do not need an on-switch anymore) but I did not create that. Maybe something for later.
Very nice instructable. I looks a bit like the one I posted as a Arduino clone but then for the PIC microcontroller (https://www.instructables.com/JALPIC-One-Develo... the only mistake I made was to not put the voltage regulator flat on the PCB which I would do in revision 1.As a suggestion, your 3.3 Volt regulator can supply a maximum of 250 mA and if I am right an ESP8266 Wifi Modules needs more than that so that might be a bit problematic if you want to create an IoT device with your board and that module.
Intelligent Tail LightView Instructable »
I hope so. Let me know the results after you have created the board.
JALPIC One Development BoardView Instructable »
Yes, I also want to limit the use of normal batteries. That is why I like these Tea Lights.
Tea Light CloneView Instructable »
Sleep Enough TimerView Instructable »
Thanks. I try to promote JAL as much as possible so that the community will grow. All my project on Instructables are based on JAL.
Did you check all photo's there are a few about the wiring. I bought my Pickit3 at Aliexpress which is much cheaper than the official one and it works fine. JAL is made for PICs, there is something mentioned in relation to Arduino, at board level: http://justanotherlanguage.org/content/jaluino_int...The development environment for JAL is not as fancy as for Arduino. There are two Editors that support JAL, JALEDIT (which is no longer maintained) and JALIDE (which is almost bug-free :-).I edit, and compile my program with JALIDE and use the Microchip IPE environment to program my PIC with a PicKit3. In rare occasions I use MPLABX when I really need to set breakpoints at assembly level for debugging but as said this is often not required. If you need more info, let me know.
Some time ago I ported the Arduino Virtual Wire library to JAL.I think is not yet in the official release but it is available - I think - in the bee-packages. If have used this protocol with a 433 MHz transmitter and receiver (that what the Virtual Wire was made for) so if you are going for RF, this protocol might just be what you need.
Analog Digital ClockView Instructable »
Hi Pinhead,Nice to see that there are more JAL fans. Thanks for the feedback, I changed it.A Happy New Year to you too!
Hi gm280. You are right, there is more on the 433 MHz band but the protocol is very reliable since it does a CRC check to see if the message was received correctly. Next to that the transmitter repeats the message so in total it will transmit the same message 3 times. The receiver, however, will recognize duplicate messages so will only use 1 of the 3 messages.
Wireless Doorbell ReceiverView Instructable »
Wireless Doorbell TransmitterView Instructable »
Very well done, I voted for you,
DIY Interactive LED Coffee Table
USB NEC Infra-Red Transmitter and ReceiverView Instructable »
Infra-Red Panel TimerView Instructable »
In The Netherlands we call this a 'Babyzaag' or 'Juniorzaag' which I think is called 'Junior Saw' in English
Thanks, and it also works awesome!
Tea Light Charger MonitorView Instructable »
This one looks the same as: https://www.instructables.com/Superb-Lab-Power-...
Nice. Why not connect the 5 Volt Voltage Regulator to the output of the Laptop Charger? You then do not need a step-down converter.
Hi Daniel. My solution at that time was to use a 220 Volt Relays that disconnected the output of the Power Supply from the connectors to which the circuit was connected. So as soon as the power switch of 220 Volt was switched to off, the relays switched off and the connectors were disconnected from the power supply and so preventing that the connected circuit would get a higher voltage.
Very nice product. One question. Many years ago a had built a power supply that also created the negative voltage (with D5, D6, D7) but when switching the power off, this negative voltage went to 0 much faster than the positive voltage which resulted in the positive voltage at the output of the Power Supply to go up for a short period of time resulting in a higher output voltage. I finally removed all components and connected the negative voltage to ground resulting that the minimal output voltage was not 0 but 1.2 Volt. Did you not have this increase in power supply voltage? This depends by the way of the capacitor C1 of which I see they have connected a resistor in parallel maybe to make sure that the positive voltage drops before the negative does and preventing that problem.
Reaction Speed TimerView Instructable »