Noaharc Electronics

Noaharc ElectronicsNoaharc ElectronicsNoaharc Electronics
Home
SmoothPower-PIC18
SmoothPower-Analog
SMPS Design
EE Specialties
CommunicationTheory
TransistorTheory
Antenna
Sequitur-Python
microprocessor 8085
Digital Logic
PumpController
FiberOptic
Doodles

Noaharc Electronics

Noaharc ElectronicsNoaharc ElectronicsNoaharc Electronics
Home
SmoothPower-PIC18
SmoothPower-Analog
SMPS Design
EE Specialties
CommunicationTheory
TransistorTheory
Antenna
Sequitur-Python
microprocessor 8085
Digital Logic
PumpController
FiberOptic
Doodles
More
  • Home
  • SmoothPower-PIC18
  • SmoothPower-Analog
  • SMPS Design
  • EE Specialties
  • CommunicationTheory
  • TransistorTheory
  • Antenna
  • Sequitur-Python
  • microprocessor 8085
  • Digital Logic
  • PumpController
  • FiberOptic
  • Doodles
  • Home
  • SmoothPower-PIC18
  • SmoothPower-Analog
  • SMPS Design
  • EE Specialties
  • CommunicationTheory
  • TransistorTheory
  • Antenna
  • Sequitur-Python
  • microprocessor 8085
  • Digital Logic
  • PumpController
  • FiberOptic
  • Doodles

Using LM3524 to generate a PWM Signal(1)

A Ubiquitous PWM IC. I first encountered this IC over 4 Decades ago

The Universality of this IC is amazing. It's fairly basic,Open-Collector output, no Feedforward, no integrated High-Side driver or synchronous rectifier provisions, but those features can be added without too much grief


I use this in combination with a High-Side driver IC, and inverter, and a couple of transistors to implement my Sync-Buck Converter, "RPC1"


Dual outputs are combinable, ORed together for a single-ended design, or separate for a push-pull.


No inherent limitations on SMPS topology


Or, the IC doesn't even care if you just drive an LED with its output

Using LM3524 to generate a PWM Signal(2)

The Circuit Above

I like to build circuits, use standoffs to mount them to a pine or oak board


Put salvaged plexiglass over them


This one uses the schematic above to create an LED strobe light


It's also a test case for my "RPC1" regulating power converter Buck board PCB

A PWM for General Usage

Low Speed PWM (Pulse-Width-Modulator), usable as Variable Load or Source

I wanted to have a quick-grab device I could configure in different ways, but primarily for varying the effective resistance of a low resistance, ie especially for applying an electronically-variable load


One application is for solar battery-charging. 


When the battery is full, you get to choose whether you disconnect the solar panel, or you can apply a proportional load.


This circuit is great for adding that load

A PWM-Based Low-Battery-Cutout Circuit

Analog Technology

I was planning a Bike Light with a Lithium Battery bank and therefore needed a way to

  1. Turn off the lights to protect the battery
  2. Retain some functionality during the lower few percent of battery life
  3. Choose a fairly narrow range of voltage during which to PWM down to 0%

A Quad Opamp as a Current Indicator

Analog Technology

I need to use power often on the workbench to test my little transistor, IC and LED circuits.  I need a rough idea of the current.


Often these are one-off circuits for some niche project like testing some special 1800K LEDs, and I want to use the actual power cube I'm going to deploy it with. It's fairly easy to re-route my 12V battery input to this circuit instead from a power cube


This circuit utilized a quasi-logarithmic scale, with a 10:1, a 2:1 and a 5:1 ratio step. A little confusing maybe, but it portrays the feeling

RF Amplifier (1)

An Improvised Amp - Small-Signal

I had this TO-39 transistor. I wanted to see how well it could work as an RF amp 

RF Amplifier (2)

The Amp Above ^^^

I connected this amp to an N5247B Keysight Vector Network Analyzer and measured S21, ie a ratiometric measure of "how much power out compared to how much power in"

RF Amplifier (3)

Messing with the LC components

At one point, I had some values that didn't work well - this is an attenuator. It would be crazy to design an active attenuator by designing a really really poor amplifier.

Usually flat performance is more useful. This circuit has some peaks and valleys - often you're trying to flatten out dips and peaks

A Solar-Powered Light Controller

Requirements

  1. Charge a battery from a solar panel
  2. Constant Voltage charge control for Lead-Acid or Li Battery
  3. Run a light when sun goes down
  4. Turn off light when battery falls below a threshold voltage

Critique

  1. Not usable for single Li cell ie 3~4V because load-side MOS gates needs more voltage headroom. (Idea: Could use Logic Level and rail-to-rail Opamp may work OK)
  2. Suitable for Lead-Acid Battery at 12 volts
  3. Lacking specificity about opamp configuration, ie 1 or 2 independent?
  4. Never implemented

Developing a Voltaic-Stack Balancer

With a series-connected Voltaic stack, if the elements are of differing capacity - which they will be, they can't be EXACTLY the same - it's useful or necessary to balance the cells.


The bottom Voltaic element, referenced to ground, is self-explanatory. The others, the Vgs is additive to its position in the stack..... hence the need to limit the Vgs on the upper shunting PMOS FETs, so I used Zener diodes to clamp their gate drives.


This was an early brainstorm session. Later in the Smooth Power project I put load resistors so the PMOS aren't directly shorting the Voltaic cells

Solar-Direct Pump Priority Controller

For the fringe case where a DC solar pump runs directly off a solar array, the boundary conditions of sunrise and sunset are problematic for both the DC motor itself.... and the ability to utilize the energy that would otherwise be wasted either heating the motor.... or simply open-circuiting the solar.


This circuit continuously samples the main bus (solar) voltage, starts the pump if above a threshold, and then either

  • Continues to run the pump if voltage stays above a setpoint, or
  • Turns off the pump and allows the limited amount of solar power to charge a battery
  • This circuit outlasted the installation. The solar panels and pump were removed and this was still operating

Bench-Top Power Supply(1)

Too Many Options

I tried to make this too feature-full. Would have been better off not trying to implement so many different settings.

In the process of testing, I damaged the little digital meter, and haven't gotten it up and running. But you can't win them all.... and it was good practice

Bench-Top Power Supply(2)

Too Much Complexity

While all my features would be useful for my needs and typical use cases, the amount of little details such as designing and building instrumentation amps to drive the meters bogged me down on this project.


Still planning to vitalize somehow.

Using PIC18 to control RGB LEDs

Each of these 6 LEDs has each of its Red, Green and Blue leads connected to its own IO pin in the PIC18F45k42 uC.

Each one is PWMed to get the appearance of variable brightness.


While there are 3 PWM modules on this IC - that would only support 1 RGB LED. I didn't use them. Here I've implemented "bit banging" to effectively get 18 PWMs.


This scheme uses a large proportion of the available processor time. Although, the PWMing might be much faster than needed.

Downloads

MainFlasher-F42 (c)

Download

Copyright © 2025 noaharc electronics - All Rights Reserved.

Powered by

This website uses cookies.

We use cookies to analyze website traffic and optimize your website experience. By accepting our use of cookies, your data will be aggregated with all other user data.

DeclineAccept