Quantcast
Channel: circuit | Battery Guide
Viewing all 239 articles
Browse latest View live

VERSATILE AND OPEN SOURCE LIPO BBATTERY BREADBOARD POWER SUPPLY

$
0
0

Orlando Hoilett from Calvary Engineering LLC designed a  versatile Li-Po battery breadboard power supply and wrote an Instructables on it. This power supply outputs 3.3V to the breadboard and takes input from a single-cell LiPo battery. The breadboard power supply also has the ability to charge the battery without needing to separate it from the circuit board. More importantly, this project is licensed under Open Source Hardware which means anyone can modify, distribute, make, and sell this design.

VERSATILE AND OPEN SOURCE LIPO BBATTERY BREADBOARD POWER SUPPLY

Key Components

The complete BOM is available at the GitHub repository.

  • JST connector
    This connector connects directly to the LiPo battery.
  • 3.3V regulator, AP2210K
    3.3V logic is getting increasingly popular among electronics hobbyists and engineers. Also, boosting 3.7V of a LiPo battery to 5V can induce quite a bit of switching noise on the power supply. Linearly converting 3.7V to 3.3V is the best way to avoid this problem.
  • Battery Charger, MCP73831T
    This power supply has a charger built into the board so you can charge the battery without removing it from the power supply.
  • Voltage Selection Jumper
    The voltage selection headers are 3 pin male headers and they are labeled as 3.3V (or VReg) and VRAW (or LiPo). Connect the center pin to 3.3V to get power from the regulator. Connect the center pin to VRAW to get power directly from the LiPo battery.
  • DPDT Switch
    This switch lets you power down the board without removing the battery.
  • LED indicators
    LEDs are used to indicate the current status of the board.

Details

This board breaks out the LiPo battery to the breadboard power rails on both sides. It has a DPDT switch to power down the board. The AP2210K IC has an ENABLE pin which is pulled down to the ground using the DPDT switch in order to enter the low power mode. In low power mode, the regulator and all the LEDs get disabled and draws almost no current from the LiPo. More about the AP2210K regulator IC is on this datasheet.

Read More: VERSATILE AND OPEN SOURCE LIPO BBATTERY BREADBOARD POWER SUPPLY

The post VERSATILE AND OPEN SOURCE LIPO BBATTERY BREADBOARD POWER SUPPLY appeared first on PIC Microcontroller.


PICKIT 3 MINI

$
0
0

Previously, I made a Pickit 3 clone – (See previous Blog Post). It works well, but I have often wondered just how little of its circuitry was needed to program and debug the boards I make. For instance – I primarily use the newer 3.3V PIC32 processors, so I really don’t need the ability to alter the voltage like the standard Pickit 3 can. I also have no real need for programming on the go, or even to provide power to the target MCU to program. Knowing this – I decided to see what I could do to remove the circuitry I didn’t need, yet still have a functioning programmer/debugger.

After a little research and looking at what Microchip had done with their starter kits, I arrived at the following schematic, which is based on their Pickit On-Board:

PICKIT 3 MINI

Here is a link to a PDF of the schematic: PDF Schematic

In the top left of the schematic is the 25LC256 EEPROM. Working our way down we see the main MCU the PIC24FJ256GB106 – and it’s programming header to the left, and below that is the USB Mini-B connector and the 3.3V regulator. Just above that and to the right is the target MCU programming header. To the right of that is a transistor that controls the target MCU master-clear line. Above that are a couple of voltage dividers that mimic the programming and target mcu voltages, and above that are the target MCU clock and Data lines.

This circuit looks to be the same basic underlying Pickit 3 circuit, but with some “faking” of inputs to mimic missing circuitry. For instance – the OTG programming switch would normally be on pin 21, but instead it is simply pulled high as there is no switch to pull it low. VPP_SENSE and VDD_SENSE are simply fed to the PIC by way of voltage dividers, as is the 2.5 volt reference at pin 16.

As it appeared I had everything I needed, I went about laying out the PCB. Since my ultimate goal with this project is to simply include these parts on my prototype development boards so that I can program and debug with an on-board device, I did not spend a lot of time routing the board. It is a quick and dirty that I am using as a proof of concept. If I intended to make these for long term use, I would have spent some time laying it out properly.

Read More: PICKIT 3 MINI

The post PICKIT 3 MINI appeared first on PIC Microcontroller.

CONTACTLESS AUTOMATIC WARDROBE LED LIGHT WITH FADE EFFECT

$
0
0

Contact-less controlled automatic wardrobe light turns on the LED when you open the wardrobe door. Τhe project is based on Hall effect IC including LED driver and tiny magnet. Board doesn’t require any mechanical switch. When magnet is close to the board, LED is off, when you open the wardrobe door magnet goes far from hall IC and its turn on the LED, the IC also has special features like soft start and soft off. This board can be used in other applications like Automotive Gloves boxes and Storage, task lighting, automotive vanity mirrors.  The APS13568 is the heart of the project. The IC can drive LED current up to 150mA. I have set the current 100mA approx. with help of R3. C2 is provided to set the FADE-IN/FADE-OUT time. The value of C2 can be changed as per application requirement.

CONTACTLESS AUTOMATIC WARDROBE LED LIGHT WITH FADE EFFECT

The IC is an integrated circuit that combines an ultrasensitive, Omni polar, micro power Hall-effect switch with a linear programmable current regulator providing up to 150 mA to drive high brightness LEDs. The Omni polar Hall Effect switch provides contactless control of the regulated LED current, which is set by a single reference resistor R3. This highly integrated solution offers high reliability and ease of design compared to a discrete solution. The Hall-effect switch operates with either a north or a south magnetic pole. The switch output polarity can be set with an external pull down on the POL input pin. This allows the user to select whether the APS13568 switch output goes low when a magnet is present or when the magnetic field is removed. Chopper stabilization provides low switch point drift over temperature. The LED is turned on when the EN input goes low. This active low input can be connected directly to the Hall switch output, SO, to turn the LED on when the switch output goes low. This flexible solution allows the user to connect additional slave switches, LED drivers, PWM, or microprocessor inputs to control when the LED is on. Optionally, an external capacitor can be used to adjust the fade-in/fade-out feature. On-board protection for shorts to ground and thermal overload prevents damage to the APS13568 and LED string by limiting the regulated current until the short is removed and/or the chip temperature has reduced below the thermal threshold. The integrated Hall-effect switch in the APS13568 is an Omni polar switch. The output switches when a magnetic field perpendicular to the Hall sensor exceeds the operate point threshold, BOPx (B > BOPS or B < BOPN). When magnetic field is reduced below the release point, BRPx (B < BRPS or B > BRPN), the device output goes to the other state. The output transistor is capable of sinking current up to the short-circuit current limit, IOM, which ranges from 30 to 60 mA. The difference in the magnetic operates and release points are the hysteresis, BHYS, of the device. This built-in hysteresis allows clean switching of the output even in the presence of external mechanical vibration and electrical noise. Removal of the magnetic field results in an output state consistent with B < BRPx. Since the output state polarity relative to the magnetic thresholds is user-selectable via the POL pin, reference Table 1 to determine the expected output state.

Note: The board has omnidirectional Hall sensor. Default it set to switch on the LED in absence of magnetic field or magnet is not around, it will switch off the LED when magnet is close to the hall sensor IC or in presence of magnetic field. Remove POL Resistor R4 for reverse operation.

Read More: CONTACTLESS AUTOMATIC WARDROBE LED LIGHT WITH FADE EFFECT

The post CONTACTLESS AUTOMATIC WARDROBE LED LIGHT WITH FADE EFFECT appeared first on PIC Microcontroller.

Basic PIC circuit is not working

$
0
0

I have just begun in the world of micro-controllers, and the first micro-controller. I chose to work with was the PIC from Microchip. The PIC I am using is the PIC16F877A. I am using MPLAP IDE and HI-TECH C. I am trying to make an extremely simple program that turns on an LED. This is the code I am using:

Basic PIC circuit is not working#include<htc.h> #define _XTAL_FREQ 8000000 __CONFIG(UNPROTECT & PWRTDIS & WDTDIS & HS & LVPDIS); int main() { TRISB0 = 0; RB0 = 1; while(1);}

When I hookup the PIC to my circuit the LED does not turn on.

A few other notes about my circuit:

  • I am using a 9 volt battery hooked up to a 7805 regulator for the power supply
  • I have measured the voltage coming from pin RB0 with a multimeter and it measures 0.0V.

Basic PIC circuit is not working Schematic

  • If there is no problem with my circuit I could have programmed the chip wrong
  • My capacitors hooked up with my crystal are 22pf not 22uf
  • I have put 100uf capacitors between pins 11 and 12 and between 31 and 32

 

For more detail: Basic PIC circuit is not working

The post Basic PIC circuit is not working appeared first on PIC Microcontroller.

Maxim claims Class D amps will simplify audio design

$
0
0

Description

The MAX98355A/MAX98355B are digital pulse-code modulation (PCM) input Class D power amplifiers that provide Class AB audio performance with Class D efficiency. These ICs offer five selectable gain settings (3dB, 6dB, 9dB, 12dB, and 15dB) set by a single gain-select input (GAIN).

The digital audio interface is highly flexible with the MAX98355A supporting I²S data and the MAX98355B supporting left-justified data. Both ICs support time division multiplexed (TDM) data. The digital audio interface accepts sample rates ranging from 8kHz to 96kHz for all supported data formats. The ICs can be configured to produce a left channel, right channel, or (left + right)/2 output from the stereo input data. The ICs operate using 16/24/32-bit data for I²S and left justified modes as well as 16-bit data with up to four slots when using TDM mode. The ICs eliminate the need for the external MCLK signal that is typically used for PCM communication. This reduces EMI and possible board coupling issues in addition to reducing the size and pin count of the ICs.

The ICs also feature a very high wideband jitter tolerance (12ns typ) on BCLK and LRCLK to provide robust operation.

Active emissions-limiting, edge-rate limiting, and overshoot control circuitry greatly reduce EMI. A filterless spread-spectrum modulation scheme eliminates the need for output filtering found in traditional Class D devices and reduces the component count of the solution.

Key Features

  • Single-Supply Operation (2.5V to 5.5V)
  • 3.2W Output Power into 4Ω at 5V
  • 2.2mA Quiescent Current
  • 92% Efficiency (RL = 8Ω, POUT = 900mW, VDD = 3.7V)
  • 25µVRMS Output Noise (AV = 15dB)
  • Low 0.013% THD+N at 1kHz
  • No MCLK Required
  • Sample Rates of 8kHz to 96kHz
  • Supports Left, Right, or (Left + Right)/2 Outputs
  • Sophisticated Edge Rate Control Enables Filterless Class D Outputs
  • 77dB PSRR at 217Hz
  • Low RF Susceptibility Rejects TDMA Noise from GSM Radios
  • Extensive Click-and-Pop Reduction Circuitry
  • Robust Short-Circuit and Thermal Protection
  • Available in Space-Saving Package: 1.345mm x 1.435mm WLP (0.4mm Pitch)

Maxim claims Class D amps will simplify audio design

Maxim Integrated has introduced a couple of digital-input Class D power amplifiers that it claims will simplify audio designs by eliminating complicated programming.

“Audio design can be simplified because internal circuitry in the MAX98355/MAX98356 detects the input clock and automatically calculates the sample rate.

According to the supplier, this reduces complicated programming and the need for system software support.

“These digital-input Class D amplifiers make system design nearly plug and play,” said Robert Nicoletti, applications manager at Maxim Integrated.

The MAX98355 (pulse-code modulation, PCM) and MAX98356 (pulse-density modulation, PDM) offer high jitter tolerance with low 0.013% THD+N at 1kHz and 99dB dynamic range.

Power efficiency is 92% at RL = 8?, POUT = 900mW, V­DD = 3.7V.

The chips are available in a 9-pin WLP package (1.345mm x 1.435mm x 0.64mm).

 

For more read: Maxim claims Class D amps will simplify audio design

The post Maxim claims Class D amps will simplify audio design appeared first on PIC Microcontroller.

PIC microcontroller Beginner’s guide: Basic connection circuit

$
0
0
What is a pic microcontroller? The PIC microcontroller is a low cost ‘computers on a chip’ manufactured by Microchip. They allow electronic designers and hobbyists impart intelligence and logic to a single chip for special purpose applications and products. The PIC microcontroller programming is done using the popular software ‘Mikro C’. This powerful yet easy to program into a 40-pin package is upwards compatible with the PIC16C5X, PIC12CXXX and PIC16C7X devices.
PIC microcontroller Beginner’s guide Basic connection circuit
 How to program microcontroller? Which is the program for microcontroller? These are the commonly asked questions by microcontroller beginners. Here we are going to explore the world of microcontroller, microcontroller programming and embedded systems with PIC16F877A. It is has five ports- port A, port B, port C, port D and port E.
An embedded system design is easy with the help of embedded C programming. Let’s start studying about microcontroller and embedded C programming for microcontroller PIC using Mikro C Pro. This article deals with the basic connection diagram and a LED blinking program of PIC microcontroller.

Why PIC is used/ Why PIC is Popular?

  • High speed
  • High performance RISC (Reduced Instruction Set Computer) CPU
  • Instruction Set simplicity
  • Integration of operation features
  • Programmable timer options
  • Interrupt control
  • EPROM/OTP/ROM options
  • Inbuilt modules
  • Low power consumption
  • Wide operation voltage range: 2.5 to 6 volt
  • Programmable code protection mode
  • Power saving sleep mode

PIC microcontroller Beginner’s guide Basic connection circuit schematicPIC16F877A Features

  • High performance CPU
  • Only 35 instructions
  • All are single cycle instruction excluding for program branches.
  • Operating speed is DC to 20 MHz.
  • 8Kx14 word of flash memory
  • 368×8 bytes of data memory
  • 256×8 bytes of EEPROM data memory
  • Interrupt compatibility
  • Power on reset
  • Power up timer and oscillator start up timer
  • Watch dog timer with its own chip RC oscillator for reliable operation
  • Programmable code protection power saving SLEEP mode
  • Low power, high speed CMOS FLASH/EEPROM technology

For more detail: PIC microcontroller Beginner’s guide: Basic connection circuit

The post PIC microcontroller Beginner’s guide: Basic connection circuit appeared first on PIC Microcontroller.

microcontroller based projects circuit free

$
0
0

Analogue electronics, digital circuits and microcontrollers simulation, all in one. Another free Espresso-based minimisation tool. PLD and FPGA project flow Electronics circuit diagrams and projects based on microcontroller. 8051-BASED EEPROM MICROCONTROLLERS. HUM-FREE BATTERY ELIMINATOR Please I need a circuit diagram of a speed checker on highway with full project report write up, and all the construction guidelines with how it Jun 3, 2012. Electrical Electronic Instrumentation Project.

microcontroller based projects circuit freeBased Doorbell by Quozl. A microcontroller PIC 16F84 driven doorbell circuit with many features: If you have any comments or suggestions please feel free to email me. Basic Stamps and PICs. A Basic Stamp consists of a tiny circuit board on which is soldered a PIC. For small projects the PIC16F84 is a common choice as it is cheap and uses.

microcontrollers. Within these pages youll find circuits about the AVR microcontrollers, with May 11, 2012. ATmega32 AVR-Free-Projects-Tutorials-Codes. Microcontroller Based UPS Schematic Complete Project including Code PCB Schematic

Oct 20, 2008. The Schematic and code for this project can be downloaded here:. Why dont you use AVR-GCC its free, much popular and fantastic. Cornell Universitys Project Page: Well-documented microcontroller based projects As a result of my MPhil project work I created a hand-held device, called Smart Card Defender. Then continue or reject the transaction based on the user decision Another.

microcontroller based projects circuit free SchematicIntegrated Circuits with Contacts ICC-generally referred to as smartcard. AVR-GCC 7 is a free C compiler for Atmel AVR microcontrollers Automatic Temperature Controlled Fan Using Microcontroller And receive absolutely FREE a full project for:. Microcontroller Projects Ideas. These projects typically do not contain microcontrollers as they are based on Free Essays on Gps Tracking System Circuit Using 8051 Microcontroller for.

 

For more detail: microcontroller based projects circuit free

The post microcontroller based projects circuit free appeared first on PIC Microcontroller.

Microcontroller Tutorial 4/5: Creating a Microcontroller Circuit Board

$
0
0

We are now in the fourth part of the microcontroller tutorial. We have a microcontroller circuit diagram ready. It’s time to make a circuit board. I love this part. This is the “magical” step that takes the idea we started with and turns it into something real.

But let’s recap. So far we have learned:

Microcontroller Tutorial 4 5 Creating a Microcontroller Circuit BoardIn this fourth part, we are going to create a circuit board for our circuit, then get this board created in one way or another. This can be done in several ways, as we’ll see later.

To design our circuit board we’ll use Cadsoft Eagle. It’s available in a free version and works on Windows, Mac and Linux.

Designing Schematics For Our Microcontroller Circuit

The first thing we need to do, is to put our schematic design into Eagle’s schematic editor. If you are not familiar with this process, check this out: How to create schematics with Eagle

In the previous part of this microcontroller tutorial, we decided on which components to use and how to connect them.

The ATmega32U2 microcontroller, is not in Eagle’s default library. I could have designed my own custom component, but to save time I used a library that I found here: https://github.com/civanovici/roduino/tree/master/eagle/eagleLibrary

For the USB connector, I used one from Sparkfun’s library here: https://github.com/sparkfun/SparkFun-Eagle-Libraries

Designing Out Board Layout

The next step is to design the board.

In Eagle, we can click on the «Board» button in the toolbar to open the design editor. If no board design exists for your schematics, you will be asked if you want to create one. Answer «Yes» to this.

Microcontroller Tutorial 4 5 Creating a Microcontroller Circuit Board SchematicI always start out by defining my board size. I know that I can get really cheap prototypes if I stick to 5cm x 5cm (1.9685 in x 1.9685 in), so I will set my board size to this.

Now it’s time to place the components onto the board and draw the connections.

In this design, I wanted to draw only on one side, so that it would be easier to mill or etch the board – just in case I wanted to do this.

 

For more detail: Microcontroller Tutorial 4/5: Creating a Microcontroller Circuit Board

The post Microcontroller Tutorial 4/5: Creating a Microcontroller Circuit Board appeared first on PIC Microcontroller.


Ponyprog Circuit for AVR & PIC16F84

$
0
0

Comments:
All resistors are 1/4W.The circuit is powered by 9…15V DC or AC. When In Circuit Programming (ISP) connectors are used, is possible the programmer to be powered from target’s power source. Diodes D2 and D6 protect the regulator LM7805, when target’s power is used.

Ponyprog Circuit for AVR & PIC16F84 Schematic‘ XTAL JUMP ‘ is used to cut XTAL when the AVR has internal RC oscillator enabled.
‘FAMILY JUMP’ is used to select which ATMEL’s family to program, AVR series (ATtinyXX, AT90SXXXX, ATmegaXXX) or 8051 series (AT89Sxxxx).

‘PIC JUMP’ is used to switch between Microchip’s PIC and ATMEL’s microcontrollers. With jumper ON only PIC can be programmed, while OFF can program ATMEL’s microcontrollers. If you don’t need to program PICs, you can leave their board area unsoldered. The PCB has been designed so that DIP sockets or ZIF sockets can be used. Because of its cost, it is recommended that only one ZIF is used combined with some pin-arrays to switch between the four different places.
The board must be connected to a PC COM port through a 9 pin to pin cable and work with the below application:

‘PonyProg2000 – Serial Device Programmer
Copyright (C) 1997-2001 by Claudio Lanconelli
E-mail: lancos@libero.it
Download last version of PonyProg2000 at the address:
http://www.LancOS.com ‘.
Supported microcontrollers are:

Ponyprog Circuit for AVR & PIC16F84 Schematic BoardATMEL’s AVR series
ATtiny12, ATtiny15, AT90S1200, AT90S1200A, AT90S2233, AT90S2313, AT90S2323, AT90S2343, AT90S4414, AT90S4433, AT90S4434, AT90S8515, AT90S8535, ATmega8, ATmega16, ATmega161, ATmega163, ATmega323, ATMEL’s 8051 series, AT89S53, AT89S8252

MICROCHIP’s PIC series
PIC16x83, PIC16x84, PIC16F84A
And some other programmable ICs (memories, microcontrollers) which Ponyprog support but need a board adapter to be programmed through ISP connectors. For more information see Claudio Lanconelli site .

 

For more detail: Ponyprog Circuit for AVR & PIC16F84

The post Ponyprog Circuit for AVR & PIC16F84 appeared first on PIC Microcontroller.

Digital Speedometer and Odometer Circuit using PIC Microcontroller

$
0
0

speedometer-and-odometer-circuit-using-PIC

Digital Speedometer and Odometer Circuit using PIC Microcontroller

Measuring the speed/rpm of a Vehicle or a motor has always been a fascinating project for us to try. So, in this project we are going to build one using the Industrial ready PIC microcontrollers. We will use a piece of magnet and a Hall Sensor to measure the speed. There are other ways/sensors to measure the speed but, using a hall sensor is cheap and also can be used on any type of motor/Vehicle. By doing this project we will also enhance our skills in learning PIC16F877A since the project involves the use of Interrupts and Timers. At, the end of this project you will be able to calculate the speed and distances covered by any rotating object and display them on a 16×2 LCD screen. Lets start with this Digital Speedometer and Odometer Circuit with PIC

Simulation:

The Simulation for this project is done using Proteus. Since the project involves moving objects it is not possible to demonstrate the complete project using simulation but the working of the LCD can be verified. Simply load the hex file to the Simulation and simulate it. You will be able to notice the LCD working as shown below.

speedometer-and-odometer-circuit-using-PIC-simulation

To check of the speedometer and odometer are working I have replaced the Hall sensor with a Logic state device. During the simulation you can click on the logic state button to trigger the Interrupt and check if the speed and distance covered is getting updated as shown above.

for more detail: Digital Speedometer and Odometer Circuit using PIC Microcontroller

The post Digital Speedometer and Odometer Circuit using PIC Microcontroller appeared first on PIC Microcontroller.

VERSATILE AND OPEN SOURCE LIPO BBATTERY BREADBOARD POWER SUPPLY

$
0
0

Orlando Hoilett from Calvary Engineering LLC designed a  versatile Li-Po battery breadboard power supply and wrote an Instructables on it. This power supply outputs 3.3V to the breadboard and takes input from a single-cell LiPo battery. The breadboard power supply also has the ability to charge the battery without needing to separate it from the circuit board. More importantly, this project is licensed under Open Source Hardware which means anyone can modify, distribute, make, and sell this design.

VERSATILE AND OPEN SOURCE LIPO BBATTERY BREADBOARD POWER SUPPLY

Key Components

The complete BOM is available at the GitHub repository.

  • JST connector
    This connector connects directly to the LiPo battery.
  • 3.3V regulator, AP2210K
    3.3V logic is getting increasingly popular among electronics hobbyists and engineers. Also, boosting 3.7V of a LiPo battery to 5V can induce quite a bit of switching noise on the power supply. Linearly converting 3.7V to 3.3V is the best way to avoid this problem.
  • Battery Charger, MCP73831T
    This power supply has a charger built into the board so you can charge the battery without removing it from the power supply.
  • Voltage Selection Jumper
    The voltage selection headers are 3 pin male headers and they are labeled as 3.3V (or VReg) and VRAW (or LiPo). Connect the center pin to 3.3V to get power from the regulator. Connect the center pin to VRAW to get power directly from the LiPo battery.
  • DPDT Switch
    This switch lets you power down the board without removing the battery.
  • LED indicators
    LEDs are used to indicate the current status of the board.

Details

This board breaks out the LiPo battery to the breadboard power rails on both sides. It has a DPDT switch to power down the board. The AP2210K IC has an ENABLE pin which is pulled down to the ground using the DPDT switch in order to enter the low power mode. In low power mode, the regulator and all the LEDs get disabled and draws almost no current from the LiPo. More about the AP2210K regulator IC is on this datasheet.

Read More: VERSATILE AND OPEN SOURCE LIPO BBATTERY BREADBOARD POWER SUPPLY

The post VERSATILE AND OPEN SOURCE LIPO BBATTERY BREADBOARD POWER SUPPLY appeared first on PIC Microcontroller.

PICKIT 3 MINI

$
0
0

Previously, I made a Pickit 3 clone – (See previous Blog Post). It works well, but I have often wondered just how little of its circuitry was needed to program and debug the boards I make. For instance – I primarily use the newer 3.3V PIC32 processors, so I really don’t need the ability to alter the voltage like the standard Pickit 3 can. I also have no real need for programming on the go, or even to provide power to the target MCU to program. Knowing this – I decided to see what I could do to remove the circuitry I didn’t need, yet still have a functioning programmer/debugger.

After a little research and looking at what Microchip had done with their starter kits, I arrived at the following schematic, which is based on their Pickit On-Board:

PICKIT 3 MINI

Here is a link to a PDF of the schematic: PDF Schematic

In the top left of the schematic is the 25LC256 EEPROM. Working our way down we see the main MCU the PIC24FJ256GB106 – and it’s programming header to the left, and below that is the USB Mini-B connector and the 3.3V regulator. Just above that and to the right is the target MCU programming header. To the right of that is a transistor that controls the target MCU master-clear line. Above that are a couple of voltage dividers that mimic the programming and target mcu voltages, and above that are the target MCU clock and Data lines.

This circuit looks to be the same basic underlying Pickit 3 circuit, but with some “faking” of inputs to mimic missing circuitry. For instance – the OTG programming switch would normally be on pin 21, but instead it is simply pulled high as there is no switch to pull it low. VPP_SENSE and VDD_SENSE are simply fed to the PIC by way of voltage dividers, as is the 2.5 volt reference at pin 16.

As it appeared I had everything I needed, I went about laying out the PCB. Since my ultimate goal with this project is to simply include these parts on my prototype development boards so that I can program and debug with an on-board device, I did not spend a lot of time routing the board. It is a quick and dirty that I am using as a proof of concept. If I intended to make these for long term use, I would have spent some time laying it out properly.

Read More: PICKIT 3 MINI

The post PICKIT 3 MINI appeared first on PIC Microcontroller.

CONTACTLESS AUTOMATIC WARDROBE LED LIGHT WITH FADE EFFECT

$
0
0

Contact-less controlled automatic wardrobe light turns on the LED when you open the wardrobe door. Τhe project is based on Hall effect IC including LED driver and tiny magnet. Board doesn’t require any mechanical switch. When magnet is close to the board, LED is off, when you open the wardrobe door magnet goes far from hall IC and its turn on the LED, the IC also has special features like soft start and soft off. This board can be used in other applications like Automotive Gloves boxes and Storage, task lighting, automotive vanity mirrors.  The APS13568 is the heart of the project. The IC can drive LED current up to 150mA. I have set the current 100mA approx. with help of R3. C2 is provided to set the FADE-IN/FADE-OUT time. The value of C2 can be changed as per application requirement.

CONTACTLESS AUTOMATIC WARDROBE LED LIGHT WITH FADE EFFECT

The IC is an integrated circuit that combines an ultrasensitive, Omni polar, micro power Hall-effect switch with a linear programmable current regulator providing up to 150 mA to drive high brightness LEDs. The Omni polar Hall Effect switch provides contactless control of the regulated LED current, which is set by a single reference resistor R3. This highly integrated solution offers high reliability and ease of design compared to a discrete solution. The Hall-effect switch operates with either a north or a south magnetic pole. The switch output polarity can be set with an external pull down on the POL input pin. This allows the user to select whether the APS13568 switch output goes low when a magnet is present or when the magnetic field is removed. Chopper stabilization provides low switch point drift over temperature. The LED is turned on when the EN input goes low. This active low input can be connected directly to the Hall switch output, SO, to turn the LED on when the switch output goes low. This flexible solution allows the user to connect additional slave switches, LED drivers, PWM, or microprocessor inputs to control when the LED is on. Optionally, an external capacitor can be used to adjust the fade-in/fade-out feature. On-board protection for shorts to ground and thermal overload prevents damage to the APS13568 and LED string by limiting the regulated current until the short is removed and/or the chip temperature has reduced below the thermal threshold. The integrated Hall-effect switch in the APS13568 is an Omni polar switch. The output switches when a magnetic field perpendicular to the Hall sensor exceeds the operate point threshold, BOPx (B > BOPS or B < BOPN). When magnetic field is reduced below the release point, BRPx (B < BRPS or B > BRPN), the device output goes to the other state. The output transistor is capable of sinking current up to the short-circuit current limit, IOM, which ranges from 30 to 60 mA. The difference in the magnetic operates and release points are the hysteresis, BHYS, of the device. This built-in hysteresis allows clean switching of the output even in the presence of external mechanical vibration and electrical noise. Removal of the magnetic field results in an output state consistent with B < BRPx. Since the output state polarity relative to the magnetic thresholds is user-selectable via the POL pin, reference Table 1 to determine the expected output state.

Note: The board has omnidirectional Hall sensor. Default it set to switch on the LED in absence of magnetic field or magnet is not around, it will switch off the LED when magnet is close to the hall sensor IC or in presence of magnetic field. Remove POL Resistor R4 for reverse operation.

Read More: CONTACTLESS AUTOMATIC WARDROBE LED LIGHT WITH FADE EFFECT

The post CONTACTLESS AUTOMATIC WARDROBE LED LIGHT WITH FADE EFFECT appeared first on PIC Microcontroller.

Circuit Designing of LCD with PIC

$
0
0
Hello friends, hope you all are fine and enjoying good health. Today I am posting the next part of Proteus tutorial which is Interfacing of LCD with PIC Microcontroller. . In the previous post of this tutorial, we have seen the basics of Proteus and discussed various functions of Proteus ISIS. If you are new to Proteus then I would recommend that before starting this tutorial, you should first read the first part so that you get the better idea of Proteus as I wont go in detail in today’s post. Today, we will first design a circuit of LCD with PIC on Proteus ISIS which includes PIC Microcontroller and then we will see how to burn the microcontroller in Proteus and at the end we will run our circuit and will display some text on the LCD. It will be quite a fun so let’s start.
Circuit Designing of LCD with PIC

If anyone having any problem at any point, ask in comments and I will try my best to resolve them. So, let’s get started with Interfacing of LCD with PIC Microcontroller.

Circuit Designing in Proteus

  • First of all, open the Proteus ISIS software.
  • In the start, it will look exactly the same as in below image.
  • Now click on button P as shown in below figure.

Circuit Designing in Proteus

  • When you click this button a new window will pop up as shown in below figure.
  • This is the place where we search our components, like as I want 7805 so I searched for this component and the Proteus has given me the related components.
  • Once you get your desired component, simply double click on it and it will be added in your database so that you can use them.

simply double click on it and it will be added in your database so that you can use them

  • The below image shows the components which we are gonna use in this project, so simply search for all the components and then double click on them and finally you will get all the components as shown below:

The below image shows the components which we are gonna use in this project

  • Now place these components in the Proteus workspace and connect them.
  • Design exactly the same circuit as shown in the below figure for interfacing of LCD with PIC Microcontroller.

Design exactly the same circuit as shown in the below figure for interfacing of LCD with PIC Microcontroller

  • Now our circuit in Proteus is ready to use, the next step is to write a code for the PIC Microcontroller 18F452 and then burn it into the Proteus and check its working.

    Code of LCD with PIC18F452

    • There are different compilers to write the code for PIC Microcontroller. Here I am using MikroC Pro for PIC. You can get it easily from the official site of MikroC.
    • I am not going in the details of coding as its beyond the scope of this tutorial, but still I am posting the code.
    • So now create a new project in the MikroC Pro For PIC and copy the below code and paste it in the project and compile.
    • When you compile the project, it will create a .hex file in the same folder where you have saved this project. We will use this hex file shortly.

LCD module connections
sbit LCD_RS at RD2_bit;
sbit LCD_EN at RD3_bit;
sbit LCD_D4 at RD4_bit;
sbit LCD_D5 at RD5_bit;
sbit LCD_D6 at RD6_bit;
sbit LCD_D7 at RD7_bit;

sbit LCD_RS_Direction at TRISD2_bit;
sbit LCD_EN_Direction at TRISD3_bit;
sbit LCD_D4_Direction at TRISD4_bit;
sbit LCD_D5_Direction at TRISD5_bit;
sbit LCD_D6_Direction at TRISD6_bit;
sbit LCD_D7_Direction at TRISD7_bit;
// End LCD module connections

char txt1[] = “www.TheEngineeri”;
char txt2[] = “ngProjects.com”;

char i; // Loop variable

void Move_Delay() { // Function used for text moving
Delay_ms(500); // You can change the moving speed here
}

void main(){

Lcd_Init(); // Initialize LCD
Lcd_Cmd(_LCD_CURSOR_OFF); // LCD Cursor Off
Lcd_Cmd(_LCD_CLEAR); // Clear display

Lcd_Out(1,1,txt1); // Write text in first row
Lcd_Out(2,1,txt2); // Write text in second row

Delay_ms(2000);

while(1);
}

Burn the Code in PIC Microcontroller in Proteus ISIS

  • Now we have the hex file, we need to burn this hex file in the microcontroller in Proteus.
  • So, double click on the Microcontroller in Proteus and it will open up the properties menu of PIC microcontroller.
  • Now click, as shown in the below figure, and browse for the hex file and click OK.
  • We need to add this hex file in Proteus here and also select the oscillation frequency which I have selected 16MHz.

Burn the Code in PIC Microcontroller in Proteus ISIS

Note: Make sure that the oscillation frequency remain same both in the MikroC and the Proteus.

  • After adding the file in the Proteus now click OK and play the simulation, ifeverything goes fine, you will get the results as shown in below image.

After adding the file in the Proteus now click OK and play the simulation

Note:

  • Proteus ISIS simulation file and the .hex file has been emailed to all the subscribed members. If anyone need it, subscribe to our newsletter via email and it will be emailed to you as well.

That’s all for today, I have tried my best to explain everything on Interfacing of LCD with PIC Microcontroller, but still if someone having problem ask in comments and I will try to resolve. In the next part, we will discuss various components of Proteus which are commonly used like motors, serial port, hyper terminal etc. So stay tuned and also subscribe us via email so that you get all the tutorials straight into your mail box. Have fun. Take care.

The post Circuit Designing of LCD with PIC appeared first on PIC Microcontroller.

Bode Analyzer using STM32F407 Discovery board

$
0
0

Introduction

Frequency domain analysis is very important to know more about any system/ circuit or transfer function that we deal with. And the first thought comes to our mind about frequency domain analysis is “Bode plot“. Bode plot is a combination plot of magnitude and phase difference of output vs. input of a cosine wave of single frequency, when it is applied to a circuit.

Bode Analyzer using STM32F407 Discovery board

Each of these cosine wave (signal) are applied once at a time and the frequency (in Hz or rad/sec) is increased in linear order (called chirp). All the while the amplitude of sine wave is kept constant (at say 1V_peak). While the frequency can be increased in small steps (1Hz/ sec), the time required to complete the entire frequency range can be quite big. Hence, it is preferred to choose 20 frequencies/ decade. For example, I had chosen 05Hz, 1Hz, 1.5Hz, 2Hz, 2.5Hz… 10Hz.

Generation (output) and sampling (input or feedback) of Sine wave

Generation of cosine wave (and sine) waveform is pretty straight forward, using floating point device and DAC. Be aware that using the sin or cos function from standard “math.h” library takes a lot of time (because, it is designed to meet a certain resolution, by iterative process). Instead, I am using a sine table (of 2048 points of amplitude, over 0 to 2*pi rad). I kept the “sampling” frequency (for both DAC and ADC) at 200KHz. Keeping a fixed frequency is vital to any digital signal processing algorithm.

Now the complication, if different output frequencies are needed: –

  • Keeping sampling frequency of 200KHz and output of 1Hz = 200,000 points in 1 sine table.
  • Keeping sampling frequency of 200KHz and output of 10KHz = 20 points in 1 sine table.

Obviously, a straight forward approach of a single sine table will not suffice. Hence, I use a linear interpolation technique. If the angle is such that direct output is available from the 2048 sine table, the the value is directly used. For values of angle in between, the amplitude is arrived using linear interpolation of 2 nearby values. For higher frequencies, the points in sine table are skipped (and interpolated). A function is written, which take care of all these logic and outputs the amplitude for any angle needed.

I could have used external DDS chips such as AD9833, but knowing both the sine and cosine of signal being generated, makes the magnitude and phase detection simpler (explained later). If I had used externally (DDS) generated signal, then I would have known the “frequency” of output signal (by knowing the SPI command of frequency that I send to AD9833), but knowing the phase is impossible, without sampling. And then, we would have needed separate means to get 90-deg phase shifted waveform.

Anti aliasing filter at DAC output

Using DAC is pretty simple. We just need to scale the float value from +1 to -1 (peak value of sine waveform) to 2048 (half of max value of 12-bit DAC, 4096). While using DAC makes life easier, there are some complications. Firstly, the DAC performance is decided by settling time. In case of STM32F407, the settling time is 3uSec, which translates to a max frequency of (1/3uS) = 333.33KHz . Hence, my choice of 200KHz sampling rate is safe (without introducing non-linearity in output cosine waveform.

Read more: Bode Analyzer using STM32F407 Discovery board

The post Bode Analyzer using STM32F407 Discovery board appeared first on PIC Microcontroller.


Three phase voltage measurement using pic microcontroller

$
0
0

Three phase voltage measurement using pic microcontroller project: Hi everyone I hope you are fine and doing well. In this tutorial you will learn about how to measure three phase voltage using pic microcontroller. Three phase voltage measurement has many applications in power as well as electronics field. Three phase voltage measurement system is used to measure voltage of three phase transmission lines, three phase generator, three phase transformer, three phase induction motor and any other three phase device. This project can be used for the protection of these devices from over and under voltage. Over and under voltage protection systems are designed to protect these devices for damaging under over and under voltage condition just like a circuit breaker. But circuit breaker usually works on mechanical phenomenon and in this digital world, every electrical project or electronic project is become more and more digital. So protection devices are also using digital intelligent circuit breakers. In these devices microcontrollers are used to sense voltage and current of every phase. So this three phase voltage measurement system is useful for solid state electronic relays.

Before we start our discussion on three phase voltage measurement system, you should know how to use pic microcontroller for ac voltage measurement. I  recommend you to read this ac voltage measurement using pic microcontroller article before going further. In this article I have discussed in detail that how to measure peak voltage of sine wave and how to use ADC of pic microcontroller to measure sinusoidal voltage which are changing with time.

Components used in three phase ac voltage measurement system

Following is a list of component used in three phase voltage measurement system:

  • Step down transformer : Step down transformer is used to step down voltage from 220 volt to 12 volt. Because we can not measure higher voltage directly with pic microcontroller or any microcontroller.
  • Full wave rectifier: After step down transformer, full wave rectifier is used. Full wave rectifier is used to convert negative cycle of ac voltage to positive cycle. Because we can also not measure negative voltage directly with microcontroller. Because reference voltage for controller is groun which is zero volt actually. So it is necessary to convert negative half cycle into positive cycle. I assume you are already familiar with working of full wave rectification. If not, I recommend you to read any secondary level physics book 😀
  • Voltage divider circuit: After full wave rectification, voltage divider circuit is used. Voltage we get at the output of full wave rectifier is around 17 volt dc and 12 volt RMS voltage. Again this voltage is more than a range of pic16f877a microcontroller. Pic16f877a operating voltages range is between 0 and 5 volt. So maximum voltage which we can measure with controller is 5 volt and minimum is 0 volt. So we need to used voltage divider circuit to step down voltage further.
  • PIC microcontroller: After voltage divider circuit, Pic16f877a controller is used. Output of voltage divider is connected with analog channels of controller which can read analog voltage and convert it into digital value. This measured digital value is used to calculate actual ac voltage with the help of mathematical calculation in programming.
  • LCD display: Liquid crystal display is used to show values of voltage of each phase.

Circuit diagram of three phase voltage measurement system using pic microcontroller

Circuit diagram of three phase voltage measurement system is given below. As you can see in circuit diagram, we are using three phase generator and voltage of each phase is measuring with same circuit. Phase one, phase two and phase thee measurement circuit are same. So working for all phase remain same as I discussed above for every component. In circuit diagram we used labels to make connection of output circuits with microcontroller. So make sure to make actual connection when you design this circuit.

Circuit diagram of three phase voltage measurement system using pic microcontroller

Simulation results of thee phase voltage measurement system

Simulation results of three phase voltage measurement system is shown below. V1 shows voltage of phase one, V2 shows  voltage of phase 2 and similarly v3 shows voltage of phase 3.

Simulation results of thee phase voltage measurement system

Video lecture of three phase voltage measurement

Code of three phase voltage measurement using pic microcontroller

It is very easy to write code for this system. you should know how to use analog to digital converter of pic microcontroller and how to interface LCD with pic microcontroller. Other than this you just need simple c programming concepts. To measure ac voltage, we have divided each positive cycle into 400 steps. With 5oHZ frequency time of each positive half cycle is 10ms. So we are talking 400 samples in 10ms to get maximum voltage or peak voltage of sine wave. Maximum value finding algorithm is used to find maximum value from these 400 samples. After finding maximum sample, digital vlaue of this sample is converted back into voltage by multiplying in with resolution factor of pic16f877a adc.  After that voltage divider and transformer turns ratio is used to get actual voltage. This actual voltage is displayed on LCD.

Read more: Three phase voltage measurement using pic microcontroller

The post Three phase voltage measurement using pic microcontroller appeared first on PIC Microcontroller.

Make 10x Printed Circuit Boards For $5 On PCBWay

$
0
0

The quest for making low cost printed circuit boards is one that will always keep on going and it is not going to stop here. Customers, engineers, makers, are looking for low cost printed circuit board manufacturers for their PCB needs but also a reliable one as well.

Make 10x Printed Circuit Boards For $5 On PCBWay

It is a task to find a low-cost service or better still a cheap service and a different thing to find a reliable service. Most of the time, those two services don’t go hand in hand, they are usually mutually exclusive. What if you could find the best of two worlds? Yes, you can get a cheap PCB service and also a very reliable one from PCBWay, an industry leader in the manufacturing of Printed Circuit Boards.

PCBWay is a Shenzhen-based manufacturer specializing in PCB prototyping, low-volume production, and PCB Assembly services under one roof. PCBWay has been one of the go-to destinations for boards fabrication and assembly, and they have over 71K active customers worldwide. PCBWay offers PCB and PCBA services that specialize in the prototyping and small batch printed circuit board assembly at a relatively low cost as compared to others.

Printed Circuit Board fabrication doesn’t necessarily have to be that expensive because the industry has gone through decades of innovation and more business are already providing similar services, nevertheless has the reduced cost considering the fact that the maker’s community has been seeing a sporadic growth lately. However, business-like PCBWay is making significant steps towards making this a possibility with their PCB services and other arrays of PCB add-on services.

PCBWay offer makers and designers the chance of making their printed circuit board for just $5 for 10x printed circuit boards, and this service is targeted to the prototyping stage due to the importance of this stage. Prototyping stage is the most crucial period for engineers, hobbyists, and students. PCBWay not only makes your boards quick but also makes the job right as well as cost-effective which will significantly reduce cost and shorten the time for development

Read more: Make 10x Printed Circuit Boards For $5 On PCBWay

The post Make 10x Printed Circuit Boards For $5 On PCBWay appeared first on PIC Microcontroller.

SAMTEC RELEASES OVER 100,000 NEW MODELS ON SNAPEDA

$
0
0

Electronics designers can boost their productivity with free symbols & footprints for Samtec products

Samtec is releasing new digital models for over 100,000 of its products on SnapEDA, the industry-leading circuit board design library.

SAMTEC RELEASES OVER 100,000 NEW MODELS ON SNAPEDA

Traditionally, designers have spent days creating digital models – such as symbols and footprints – for each component in their designs. Connectors are especially time-consuming to create models for, due to their non-standard shapes, pitches, pads, and cutouts.

With this new collaboration, designers can now easily discover, download, and design with over 100,000 ready-to-use Samtec connector models, helping accelerate the design process. The new models include USB, card edge, board-to-board, headers, and RF coaxial connectors.

Created by Samtec’s Signal Integrity Team, these detailed, high-quality models include accurate assembly, silkscreen and 3D features to support high density applications. The footprints employ courtyards, built-in dimensioning, and applicable metadata.

We pride ourselves on being the service leader, which means investing the time and energy into providing models that expedite the design process for SnapEDA users,

said Greg Horlick, ECAD Systems Architect, at Samtec.

Downloading the printed circuit board (PCB) models is simple: designers create a free account on the SnapEDA website, and then can download for free. Samtec has made the files available for OrCad, Allegro, Eagle and PADS, and using SnapEDA’s translation technology, the files can also be downloaded for Altium, KiCad, PCB123, Proteus 8.8, and Pulsonix.

Samtec is one of the most in-demand connector manufacturers on SnapEDA, so we know that designers will benefit greatly from these new PCB libraries to bring their products to life faster,

Read more: SAMTEC RELEASES OVER 100,000 NEW MODELS ON SNAPEDA

The post SAMTEC RELEASES OVER 100,000 NEW MODELS ON SNAPEDA appeared first on PIC Microcontroller.

PIC16F874P PROJECT DEVELOPMENT TEST CIRCUIT

$
0
0

Try the card installed on board bred PIC16F874P test used in various robotics projects, etc. RS232 connection LCD output. features are also RS232, motor, LCD testing in the Software (asm, hex) there. “PICboard” module… Electronics Projects, PIC16F874P Project Development Test Circuit “pic development board, “

pic16f874p-proje-gelistirme-test-deney-karti

Try the card installed on board bred PIC16F874P test used in various robotics projects, etc. RS232 connection LCD output. features are also RS232, motor, LCD testing in the Software (asm, hex) there.

“PICboard” module for connecting the module’s WEB-RJS with Cyber310 manipulator. The data obtained are processed and converted into 8-bit interface protocol for Cyber310 manipulator motor control.

Integrated microcontroller programmer ISCP; Internal DC +5 V voltage stabilizer; Sedan TTL -> RS-232 converter is connected to the PIC microcontroller; Microcontroller reset button; 10MHz external oscillator; Continuous DC external power supply from +5 to +30 V connection option.

PIC16F874P-motor-lcd-rs232-bred-board-devre-proje

Source: http://ktl.kauko.lt/%7Eav2/index.html PIC16F874P Development circuit Code and circuit files:pic16f874p-project-development-test-circuit.rar

The post PIC16F874P PROJECT DEVELOPMENT TEST CIRCUIT appeared first on PIC Microcontroller.

PIC16F877 EXPERIMENT BOARD CIRCUIT PIC PROGRAMMING PIC TUTORIAL BOOK

$
0
0

A useful test development PIC16F877 circuit pcb printed circuit board design was quite nice small in size but has a lot of features. Serial RS232 connection, sensors, servos, PWM, I2C connector and so on…. Electronics Projects, PIC16F877 Experiment Board Circuit PIC Programming PIC Tutorial Book “pic development board, pic16f877 projects, “

pic16f877-icin-deney-karti-development-board

A useful test development PIC16F877 circuit pcb printed circuit board design was quite nice small in size but has a lot of features. Serial RS232 connection, sensors, servos, PWM, I2C connector and so on. Experiment card with eagle schematics and PCB files are prepared. In addition, “the PIC Tutorial Programming” free ebook called shared.

MICROCHIP PIC16F877 DEVELOPMENT BOARD

pic-deneme-gelistirme-16F877-Platine

PIC16F877 DEVELOPMENT BOARD CIRCUIT

L293 * 2 Channel Motor Bridge
Up to 16 servos can be controlled (or a motor bridge and 12 servos)
Separate power supply for microcontroller, servos and motors
Port A as either analog or used for servos.
3 LEDs and a demo on A4
I2C and SPI, ICSP
LowDrop optional voltage regulator or standard 7805
Can monitor its own microcontroller-voltage

Source: goo.gl/eLm4 PIC16F877 Development Board circuit and Tutorial Alternative link: pic16f877-experiment-board-circuit-picmicro-programming-pic-tutorial-book.zip

The post PIC16F877 EXPERIMENT BOARD CIRCUIT PIC PROGRAMMING PIC TUTORIAL BOOK appeared first on PIC Microcontroller.

Viewing all 239 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>