top of page

Search Results

125 items found for ""

• Inductors | SimpleMechatronics| Simple MECHATRONICSsimple mechatronics

Inductors (Coils): Inductor is an electric conductor in coil form (shape), which generates self inductance due to change in direction of flow of current through it. The property of inductor is inductance ( denoted by L in formulae) , which is measured in (units) Henrys. Since Henry is big unit, milli Henry (mH) is used in general Inductance: One Henry is defined as generating one volt by changing direction of one Ampere current in the coil at a rate of once per a second. ​ A magnetic field is produced in the coil due to change in direction of flow of current through the conductor and opposes the cause producing it may be called as Self Inductance . Choke used in a Tube-light set is a practical example for self inductance. ​ In case, the magnetic field produced by self inductance is effecting another coil surrounded by the first coil and producing voltage across the second coil, then is called Mutual Inductance . Transformer works on Mutual Inductance concept. ​ Inductor in DC circuits: Since the inductor works on change of direction of current flow through its conductor, there is no effect of inductance, if a constant uni-direction current flows through it. So, it has no effect in DC Circuits, except resistance caused by the conductor, which depends on the material property of the conductor. ​ One of the main use of Inductor (coil) in DC circuits is to prevent any signal or noise disturbance in DC line, if connected in series. Inductor in AC circuits: Inductors are highly used in AC circuits due to its self inductance with various frequencies. ​ As the frequency passing through the Inductor increases, it offers more resistance due to opposing nature of cause, which produces it. The resistance offered in AC signal across a Inductor (coil) is called Impedence marked as Z . So, for DC signal or power supply, a coil offers Zero impdence. Inductor - Mini Size: Now-a-days inductors (coils) are available as Concealed coils. Either the inductance value is marked on the surface or Colour band code used to identify the inductance value. The colour code is followed as per resistor color code and the units are milli Henrys (mH). ​ Two models of concealed inductors are shown here. These inductors are easy to fix on PCBs.

• Arduino_TYPES | SimpleMechatronics| Simple MECHATRONICSsimple mechatronics

Arduino: Introduction & TYPES If you are new to Arduino, just go through the page and successive pages. Just have a glance on the differences in the Arduino Boards. Initially, it is not possible to have full idea about all Arduino boards. Just read on . . . Arduino is a brand name and available as development boards for quick connection and programming. Many varieties of development boards are available from Arduino. Almost all Arduino boards use one AVR micro-controller IC (or chip) on its board, with boot-loader program (pre-loaded by default). In addition to the micro-controller, the board is generally equipped with a voltage regulator IC(s) and USB interface IC. The USB interface IC is useful to UPLOAD the program code and communicate external equipment using USB port (like PC). Now (for the time being), our discussion is made limited to Make-at-Home projects. We are explaining about the Arduino boards, which are easily available and easily used for our projects. Normally, Arduino boards operates between 7VDC to 12VDC (input at Vin pin) and a crystal is used for system frequency (for on-board micro-controller). The voltage regulator IC(s) convert input voltage available through DC jack, to 5VDC & 3.3VDC output voltages, which are available on the Arduino board. You may also directly connect 5VDC supply to 5V pin on Arduino board instead of 7 to 12VDC from DC jack. (refer images below) The basic data about the Arduino boards, which are frequently used in our projects, is listed below for quick reference. The pin outs are labelled and power supply pins are marked in red and blue colours for easy identification. Arduino UNO: Arduino UNO is one of the highly used Arduino boards. Most of the Arduino starters, use Arduino Uno board initially for learning. The ATMEGA328P micro-controller is used for Arduino Uno board. Small differences are observed in Arduino Boards, which are shown here. In case of PDIP, you may replace the micro controller (ATMEGA328P) and upload BOOT LOADER to the new micro-controller. ​ In case of CH340 IC is used for USB to Serial converter, then suitable driver has to be installed on your computer. The main pin-outs of Arduino UNO is shown below for easy identification and under standing. So, some pins are connected internally to work as one or more than one function. You have to write suitable code to control the particular pin for the required functionality. It is a general practice that the code written for Arduino is called as SKETCH. ​ The Arduino Uno board is programmed through USB type-B port (normally available for USB printers) and a separate DC power supply jack is available in addition to Vin pin. Arduino NANO: Arduino NANO board is bread-board friendly pin-outs, smaller in size and frequently used for Arduino projects. Due to its compactness with most of the required features and low-cost, it is loved by Arduino programmers. For Arduino Nano also, ATMEGA328P micro-controller is used. ​ The main differences w.r.t. Arduino Uno are: 1) mini USB socket for programming. 2) two extra ADC channels A6 & A7 3) positions of pin nos 0 & 1 are reversed 4) No DC jack is available. use Vin only for power input. Arduino MEGA: Arduino MEGA board is bigger in size and frequently used for Arduino projects, where more number of digital pins are required. Almost all features and pin-outs will match with Arduino Uno, where as extra pins are available for Arduino Mega. You may replace Arduino Uno with Arduino Mega, but, reverse may not be possible, if the program uses the extra pins. The ATMEGA2560 micro-controller is used for Arduino Mega board. You may expect explanation about some more types of Arduino boards in future . . . ​ SUCCESS is, when your SIGNATURE changes to Autograph. – Dr. A.P.J Abdul Kalam

• AVR_USART | SimpleMechatronics| Simple MECHATRONICSsimple mechatronics

AVR - USART: Read Before: Micro-controller Communications >> All AVR micro-controllers have Digital Input and Output Communcation, which is explained in AVR-GPIO . Some AVR micro-controllers have Analog-Digital Conversion, which is an important communication with the real world is explained in AVR-ADC/DAC . Now, we will go through some other important and frequently used communication methods, mostly Serial Coomucations, available for AVR micro-controllers. All AVR micro-controllers have Digital Input and Output Communcation, which is explained in AVR-GPIO . Some AVR micro-controllers have Analog-Digital Conversion, which is an important communication with the real world is explained in AVR-ADC/DAC . Now, we will go through some other important and frequently used communication methods, mostly Serial Coomucations, available for AVR micro-controllers. USART: USART (Universal Synchronous Asynchronous Receiver and Transmitter) : This is the highly used programmable, Full Duplex, serial communication available in AVR micro-controllers. The external pins marked as TX is used as Transmitter (data out) and RX is used as Receiver (data in). USART is a digital data FRAME FORMAT, transmitted and received by AVR micro controllers. The frame format contains one start bit, 5 / 6/ 7/ 8 / 9 data bits, [no/odd/even] parity bit and one or two stop bits. The digital data (in frame work) is transmitted at a particular frequency to match transmitter and receiver asynchronously (no clock pulse for matching). Where as, in synchronous transmission, one micro controller programmed as MASTER, sends clock pulse along with the data bits to match the frequency of transmission for other micro controller for processing. The frequency at which the serial data bits is transmitted is called as BAUD RATE. The Baud Rates are standard and may be programmed by you to set a standard baud rate, by programming UBRRH and UBRRL registers, which together is called UBRR register . A double speed option is also available for asynchronous mode. USART:Setting BAUD RATE: Some of the Standard Baud Rates are : 1200, 2400, 4800, 9600, 14400 and so on. One of the following formulae is used to set the value for UBRR register, where MCU_FREQ is the micro-controller clock frequency. ​ ubrr_value = ( MCU_FREQ / (2*baud_rate) ) -1; //for synchronous transmission ubrr_value = ( MCU_FREQ / (16*baud_rate) ) -1; //for asynchronous normal (single speed) transmission ubrr_value = ( MCU_FREQ / (8 *baud_rate) ) -1; //for asynchronous double speed transmission ​ now, set the ubrr_value to UBRR Register which is combination of UBRRH (contains 8 MSB) and UBRRL (contains 8 LSB) ​ UBRRH = ubrr_value>>8; // to set 8 MSB UBRRL = ubrr_value; // to set 8 LSB ​ For DOUBLE SPEED transmission, set U2X bit (bit 2) in UCSRA register, which is valid for asynchronous transmission only. ​ UCSRA |= (1<>8; // to set 8 MSB of ubrr_value UBRRL = ubrr_value; // to set 8 LSB of ubrr_value ​ UCSRC | = (1 <

• DUMMY | SimpleMechatronics| Simple MECHATRONICSsimple mechatronics

Science STEM Program Register Now FANTASTIC LIGHTS SHOP FANTASTIC LIGHTS SHOP Empower local families Join Our CSA "Testimonials are a great way to showcase positive feedback from others." Timberly Williams Once Small Robot's Base Frame is made, then, various control systems for Small Robot is developed and available below to select. BUDGET Friendly

• StepperMotorTester | SimpleMechatronics| Simple MECHATRONICSsimple mechatronics

Stepper Motor Tester Whenever there is a requirement to test a Stepper Motor performance or coil connection sequence, we need a stepper motor controller board, a variable DC power supply source, a logical signal generator ( or a microcontroller ) and separate power supply for logical system etc. Still this total circuit makes confusion with so many wire connections. The circuit used here is quick, low cost, handy, compact and requires only one DC power supply input. The stepper motor driver used here can handle up to 2A stepper motor. A4988 module (breakout board) is a small size, 2A bipolar stepper motor driver, which has on board adjustable current limiting, over current protection, short circuit protection and five micro-steps resolutions. The module can be operated from 8VDC to 35VDC for Stepper motor and 3VDC to 5.5VDC for logical system. Only two pin interface is used to control the direction and step of the stepper motor. ​ Refer full circuit diagram: Testing : Assemble all the components as per the above circuit on a PCB. Connect all jumpers J1 to J7. Connect 4 LEDs to the 4pin connector with 3.3K resistance in series for each LED. Connect DC power supply and switch ON the power switch. The 555 IC is connected as Astable multivibrator mode and generates pulses and the pulses are fed to the Step of A4988 module. The speed of the pulse train may be observed with the help of Blinker LED connected to pin 3 of 555 IC. Due to the input pulses to Step pin of A4988 module, the 4 LEDs glow in sequential pattern, indicates the circuit is working properly. By changing the variable resistance VR2, the speed of the LED pattern varies. With disconnecting and connecting Jumper J1, we can achieve two speeds of pulse trains from pin 3 of 555 IC and accordingly speed of the LED pattern. Usage : Switch OFF power supply, disconnect 4 LEDs and then connect (4 wires) a Stepper motor to the 4 pin connector. Now, switch ON the power supply to the circuit. Adjust VR1 to get the required voltage to the stepper motor, which may be measured at TP3 w.r.t. ground. The Stepper motor rotates in one direction (either CW or CCW). Now, disconnect the Jumper J6 and check that the motor rotates in opposite direction. By connecting and disconnecting jumpers J3, J4 and J5 the rotation of angle of the motor shaft varies for each step pulse input as described in the table below. ​ This circuit works upto 12VDC power supply. To use different power supply or more than 12VDC (upto 35VDC) to the stepper motor, disconnect Jumper J7 and connect +ve power to the TP3 pin and –ve power to ground line of the circuit. To control the stepper motor from other source, like microcontroller etc,. disconnect jumpers J2 and J6 then connect step control to TP1 and direction control to TP2 pins respectively. List of Components: 1 x LM338T Voltage Regulator 1 x 7805 5V regulator 1 x 555 Timer IC 1 x A4988 stepper motor driver module 3 x 1N4007 dioides 2 x 20K preset (volume control) 1 x 1K resistance 2 x 2.2K resistance 2 x 3.3K resistance 5 x 4.7K resistance 1 x 47uF 50V capacitor 1 x 22uF 16V capacitor 3 x 10uF 50V capacitor 1 x 2.2uF 16V capacitor 1 x 0.1 disc capacitor 1 x 0.01 disc capacitor 1 x 3mm red LED 1 x 3mm green LED 1 x 3mm yellow LED 1 x 2A(or more) SPST switch Berg strips, connectors, power supply, stepper motor etc. ALL THE BEST - ENJOY

• AVR_ADC_DAC | SimpleMechatronics| Simple MECHATRONICSsimple mechatronics

• AVR_GPIO | SimpleMechatronics| Simple MECHATRONICSsimple mechatronics

• mcuTimersCounters | SimpleMechatronics| Simple MECHATRONICSsimple mechatronics

microcontroller - COUNTERS & TIMERS Almost all micro controllers have one or more inbuilt counters. They are either 8 bit or 16 bit counters. The input for the counters may be from either external pins or internal system clock through pre-scalars. The current counter value is always saved to a register in the micro-controller and may directly access the value at any time. ​ Delay is one of the commonly used timer function, which is single use timer and not so accurate when compared to the internal programmed timers. Delay works on counting the ticks of micro-controller system clock frequency. If the counter is programmed for external input , then the counter register may either increase or decrease by 1, by changing the logic (voltage) at the programmed pin of micro controller. You can access the value in the register and may show on a displaying device. This type of programming is useful for event counter project etc. In case, the counter is read for every one second and reset to zero after reading the current value, then the programming may be used as frequency counter project. For programming as internal counter , the counter should receive signal from system clock frequency through pre-scalar circuit. The pre-scalar divides the system clock frequency by the value set in the pre-scalar register. In case, the counter register is full (i.e., exceeds its capacity), then it resets and starts counting again. An Interrupt may be activated when the particular counter register is full and resets, which calls COUNTER OVERFLOW SERVICE ROUTINE . Every time the counter is full or overflown, the Interrupt service routine is called, where you may program do specific tasks. This Interrupt is very useful to get exact and fixed time period, to do some specific operations in loop at a particular time period. These are called Timers in micro-controllers. ​ These timers are used for data aquisition system, frequency generation, wave form generation etc.

• Imp.ICs | SimpleMechatronics| Simple MECHATRONICSsimple mechatronics

IMP. ICs PAGE IS UNDER CONSTRUCTION. ​ PLEASE ALLOW SOME TIME FOR COMPLETION. ​ SORRY FOR INCONVENIENCE CAUSED.

• mcuMemory | SimpleMechatronics| Simple MECHATRONICSsimple mechatronics

microcontroller - MEMORY MANAGEMENT Micro-controller (MCU) uses variety of memories, which are in-built. The size and purpose varies while execution of the program. RAM (Random Access Memory) : RAM is a volatile memory, which will be lost or reset when power is lost or Reset button of the MCU is pressed. The total RAM is logically subdivided into three parts. ​ The first part may be used used for accumulators, stack pointer, various address points used by the ALU (Arithmetic and Logic Unit) and control system. ​ The next part may be used for storing system process values, registers, status, flags used by control system. The left out part is the actual RAM used for the program variables. ROM (Read Only Memory ) : The ROM is non-volatile memory, means the data in the ROM will not be lost on power loss, unless overwritten by the programmer. The ROM is called FLASH MEMORY in micro-controllers. The Flash memory is logically divided into two parts. ​ The main part of Flash Memory is allocated tor the application program in binary code, which is loaded directly through the programmer. Some micro-controllers have option to lock the reading of the flash memory for protecting from copying by others. A small part of the Flash Memory is earmarked to save booting code or booting sequence at one of the extremes. EEPROM ( Elelctrically Erasable and Programmable Read Only Memory ) : This is also a ROM, but, it is used only to save variables either through the program or directly through the programmer. This is also non-volatile program. The values can be altered, if required, by the program. The EEPROM is useful to save settings, parameters which can be changed by the user while MCU is processing/working. Almost all compilers display the summary of actual Flash memory and RAM used for the program after compiling the code, which is useful to proper selection of Micro-controller (MCU).

• SmartDesktopPowerSupply | SimpleMechatronics| Simple MECHATRONICSsimple mechatronics

Smart All in 1 Desktop Power Supply The Smart All in One Desktop Power Supply is a dream project of an electronics hobbyist and also useful for the persons, who repairs electronic gadgets. The following features are available with the Smart All-in-1 Desktop Power supply: 1) + and - 3V 5V 8V 12V 15V Fixed DC supply 2) + and - 30V Variable/Adjustable DC supply 3) + and - 50V DC voltmeter and 5A ammeter 4) USB Port power supply (5VDC) for Arduino projects 5) ZENER METER for knowking actual voltage drop against zener or diodes 6) Continuity Meter to check wires, diodes, LEDs etc., 7) AC mains power supply socket and control switch 8) TRIAC controlled AC power supply 9) Convenient Soldering Stand placement 10) Flexible Focus light using 12VDC LED strip 11) Magnet placing for holding small screws etc. 12) Top flat space for keeping Multimeter and project items 13) Bottom slot for keeping frequently used items, like soldering related items etc. ​ The project uses multiple modules in one cabinet. Each module is explained separately in the website and the links for modules are available at the end of the page. ​ The connections and usage of the modules are shown and explained as separate circuit diagrams. Refer circuit diagrams used in the project: The A.C. mains wiring is one of the main circuit shown here. All the modules will receive power from mains. Here, two AC power sockets are provided. Power for one socket is controlled directly through a switch and another socket is through a switch and a Triac (BTA41) circuit. ​ LED indicators are provided each switch control to know the status of switch and output AC power at AC power sockets. ​ A transformer having dual outputs (24VAC-0-24VAC and 0-12VAC , 5A max.) is used for this project. ​ Separate bridge rectifiers and filter capacitors are used for the dual outputs to get -35V, +35v and +17V D.C. outputs (when no load condition). ​ Dual Variable DC output module and combined Voltmeter and Ammeter Module are used in the project, which are very useful to get positive and negative variable power supplies and the Voltage and Current values may be known instantly. A stepped D.C. power supply module is used to have -15V, -12V, -8V, -5V, -3V, +3V, +5V, +8V, +12V and +15V. ​ LM337 and LM317 circuits are used as prefix to reduce the incoming voltage from 35V to 20V for both positive and negative volages. ​ The rectfied 17V is used for power supply to Zener Meter, USB power supply (+5V, useful for Arduino boards), a 12V LED strip light (flexible focus light) and for simple continuity tester. ​ The Voltmeter-cum-Battery Monitor module is changed as Zener meter, by changing the maximum voltage reading value from 50V to 25V in the code. So, when the voltage is read from the +35VDC through 12K resistor, it displays squares. When an LED or diode or Zener (with reverse polarity) is connected across its terminals, the voltage drop across the component is displayed. click here for SHARED DUAL VARIABLE/ADJUSTABLE D.C. POWER SUPPLY. ​ click here for SIMPLIFIED BI-POLAR VOLT AMP METER. ​ click here for STEPPED DESKTOP D.C. POWER SUPPLY. ​ click here for SLEEK VOLTMETER -cum- BATTERY MONITOR ​ click here for SUPERB POWER CONTROLLER BTA41-600B (TRIAC CONTROL) For source codes (in C-language) for any or all modules , please send message through contact form . The code will be sent to your e-mail.

• AVR_TYPES | SimpleMechatronics| Simple MECHATRONICSsimple mechatronics