Monday, 5 September 2016

power supply unit for Arduino/solenoid project


I'm trying to find an off the shelf plug in ac/dc power supply unit to work with my project. I want to power an Arduino Duemilanove and six 12v 1A solenoids. Here's the solenoids -> http://www.rapidonline.com/productinfo.aspx?&tier1=Electronic+Components&tier2=Relays+%26+Solenoids&tier3=Solenoids&tier4=PCB+miniature+solenoids&moduleno=29536&catref=60-3210


I'd like to buy one of the power supply units from this page -> http://www.rapidonline.com/Electrical-Power/Power-Supplies/Plug-In-PSUs


But I don't know how to work out the right one. Cheers



Answer






  1. Figure out what voltages you need. You say the solenoid needs 12V, then you need to check the Arduino Duemilanove. Will it work with 12V, or does it require a different voltage.




  2. Figure out the maximum power you will need. 12V * 1A = 12W, seems high for a small solenoid, but I don't have a lot of experience with them. Sum this for all the components you will be running simultaneously.




  3. Select a power supply that provides the required voltage(s), plus at least the maximum current you need. You should probably pick something that provides a bit more than what you need, because running a component at 100% is generally a bad practice.





Sunday, 4 September 2016

Solar Cell - Preventing overcharge of an NiMH battery


I am trying to design a circuit and was wondering how to design it that the 12V 800mAH NimH battery I am using will not overcharge. I have researched trickle charging and as far as I understand, a zener diode that regulates the voltage down to about 13.3-13.7V should do. I chose a 14V Zener, taking into account the .6-.7V drop.


I have heard that trickle charging is not the best for the battery, but am not sure how much more work designing a smart charger would take.



I was also thinking of using another diode to prevent flow back to the panels from the battery.


schematic


simulate this circuit – Schematic created using CircuitLab The three voltage sources on the left represent the solar cells, with the NiMH battery on the right.


I was wondering if I needed any additional components if I were to use three 5.5V solar cells in parallel outputting 40mA (16.5V total at 40mA, regulated to 13.3V by the zener) in order to prevent overcharging.


A similar question to mine was asked at How do I avoid overcharging a battery? However, this dealt more with a larger lead-acid battery and used a voltage regulator with a schottky diode.


Smart charging circuit for NiMH battery pack This link discusses almost my exact same question, but I was confused to the answer given which said that up to 1.45V per cell could be charged, taking my max charge voltage up to 14.5V.


Considering I am only outputting 40mA to an 800mAH battery, it seems that I may not need any more battery protection, but would love any input.



Answer



First of all, you have the three 5.5v solar cells in parallel. They need to be in series to generate 16.5v.


NiMH batteries are usually charged using special IC's made for this purpose since they require special monitoring. However at the low level of current you have available (40 mA) you can get by with a much simpler charger as mentioned here. You need to make sure the current doesn't go above this level (it needs to be below 0.05C, where C = 800 mA). If the current does go above this, up to C/10 (800 mA), then you need to add a timer so the charging cycles is not more than 3 hours.



You need to replace the 5.1 Zener with a 12v one, such as the BZX85C12. In addition, you will need to add a 110 Ω resistor between the output of the solar cells and the Zener. The value is calculated by dividing the voltage drop 16.5v - 12v by the full-load current of 40 mA. At no load, the Zener will dissipate 0.04A * 12v = 500 mW, or half the maximum rating (1W) of the diode.


Saturday, 3 September 2016

What is the schematic symbol for resettable fuses?


I have seen symbols for one shot fuses and circuit breakers, but not for resettable fuses which reset themselves when the fault goes away. What is the recommended schematic symbol to use?



Answer



The symbol for a PPTC (AKA Resettable Fuse) is:


enter image description here


signal processing - Can anybody give proof about features of phase and magnitude spectrum?


I have read that from Fourier transform we obtain magnitude and phase spectrum. The magnitude spectrum tells you how strong are the harmonics in a image and the phase spectrum tells where this harmonic lies in space.


But when I plotted the phase and magnitude spectrum of say an image, the spectrum were very weird and specifically the phase spectrum is very hard to understand. So I feel Extracting information from the phase and magnitude spectrum of a signal is very difficult .


So let us take any signal of your choice (as I am not concerned with any perticular signal) and plot it's phase and magnitude spectrum.


Now,can u extract information from Magnitude spectrum and Phase spectrum of the signal and justify sentences given in the 1st paragraph of question?



Can u give proof about these sentences?



Answer



enter image description here


The first image shows the addition of two harmonics (blue, orange), both are sine waves, the two add together to create the resultant red waveform.In the frequency spectrum for the resultant red waveform, there would be only two vertical lines at different frequencies.


enter image description here


The second image shows the addition of 5 harmonics, and the resultant (combined) waveform is again the red line, and you can see on this chart, the red line is closer to a square wave, it's flatter on top and the bottom, and the steep edge is steeper.


So you can see that the more sinewaves you add, so long as they are the correct multiples in frequency of the fundamental and correct amplitudes relative to each other, then the better the approximation to the squarewave.


Any repeating waveform can be constructed from sinewaves of different frequencies, amplitudes and phases.


The third image shows the spectrums and the time waveforms for two periodic waveforms. The first is a a square wave and above it is its spectrum showing the harmonics, what multiples in frequency they are of the fundamental and the relative amplitude of each.


The second waveform and spectrum isn't a standard waveform (square, sawtooth, ramp..), I don't know what it is, it might even be a section of waveform for a musical instrument. But it illustates that a periodic (repeating) waveform can be constructed from sinewaves (harmonics).



enter image description here


Dimmable AC LED controlled by Arduino


I am a beginner, and I have a school project that requires me to use Arduino or any other microcontroller to control an LED light.


After some research, I found out that not all LEDs support dimming, and I would need to buy LED and a LED driver that supports TRIAC in order to make dimming works.


I found a tutorial online that uses Adruino and TRIAC to dim the lights bulb, but I am told that it wouldn't work with AC LED as the circuit in the tutorial is deisgned for resistive loads only. Link to the tutorial: http://m.instructables.com/id/Arduino-controlled-light-dimmer-The-circuit/


Is there anyway that I can modify the circuit in the tutorial to make dimming works with an AC LED? Perhaps attach a LED driver that supports TRIAC to the PCB, then connect the LED to the driver? Or do you suggest me do it using another method?



Answer



If you select a "dimmable" LED bulb, it should work with your TRIAC circuit. Standard dimmer switches are generally TRIAC-based. In fact, it should work better as many dimmer switches Require a minimum wattage as they pull power from the circuit. Your's should work with even a minimum wattage bulb.


maximum reverse voltage applied to a resistor-LED configuration


Consider the simple circuit below:


schematic


simulate this circuit – Schematic created using CircuitLab


LED datasheet: link


Does the applying of a reversed 36 volts to this circuit damage the LED? Knowing that the maximum current that could flow into the LED is 36V/2kOhm = 18mA (the LED can withstand 30mA forward current)


The maximum reverse voltage is 5V. Does that mean that the LED will actually blow if I applied say only a reversed 5.1V on the input?


And in case the circuit is that sensitive to reverse voltage, what are the simplest way to protect this circuit from a reverse voltage?


EDIT: I actually tested the LED and it doesn't seem to be damaged by applying 30V in reverse(applied for several minutes). Also I connected an ammeter to measure the reverse current (Fluke 87V with uA accuracy) and it shows absolutely no current flow. So what's the deal ?





Friday, 2 September 2016

Selecting low power mosfet for battery monitor


I'm trying to implement og test the results discussed in the linked JeeLab post in a low power battery powered device. http://jeelabs.org/2013/05/18/zero-power-measurement-part-2/#comments


The post describes a method for monitoring the battery voltage through a voltage divider that can be switched off by a P-channel and a N-channel mosfet. Similar solutions are discussed here:


Low Current Battery Monitor Detail Question



Low current battery monitoring


The question is how do I select an optimal N-channel og P-channel mosfet for this application? Which electrical parameters should I base the component selection on? If anyone have experiance with this method and/or selection of components sharing would be appreciated.



Answer



Check reverse leakage in datasheet. I would not use a mosfet for "true zero" power devices, but a NPN (PNP) bjt, with the same base capacitor trick.


A zero base current (or under Vbe) will easily ensure some nA collector current. This kind of devices you can see in car remote controls, where a NPN is connected directly to battery, while applying (OOK) modulation to base.


Use LtSpice to simulate.


See this Low Drain-Source MOSFET Leakage


SIMULATED


enter image description here enter image description here


arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...