background preloader

Tutoriel

Facebook Twitter

L'électronique de zéro. Bonjour à toutes et à tous ! Si vous êtes ici, même s'il s'agit d'un hasard, c'est qu'il y a une très grande probabilité que vous ayez envie de vous documenter ou d'apprendre l'électronique. Quels sont les principes de base ? Comment connaître les composants et pouvoir les utiliser pour faire des montages ? Comment faire ses propres montages ? Nous commencerons le cours "en douceur" par les formules et les lois nécessaires et fondamentales à connaitre en électronique. Sachez toutefois que le domaine de l'électronique est tellement vaste que nous ne pouvons pas vous présenter toutes les facettes de cette science. Avis donc à tous les amateurs, les hobbyistes, les professionnels et les étudiants : vous venez de dénicher la perle rare ! ATmega168A Pulse Width Modulation – PWM - Protostack. Dimming an incandescent bulb is easy. Simply adjust the current down using a potentiometer and you are done.

Dimming an LED is another story entirely. When you reduce current through an LED there are unintended consequences like color shifts and dropouts. A better way is to use Pulse Width Modulation (PWM). With PWM the LED is turned on and off many times per second. LED dimming is not the only application of PWM. Source Code Example 1 The example below produces a PWM waveform with a 20% duty cycle. #include <avr/io.h>#include <util/delay.h> #define LED_PORT PORTC#define LED_PIN 0#define LED_off() LED_PORT&=~_BV(LED_PIN)#define LED_on() LED_PORT|=_BV(LED_PIN)int main (void){ DDRC = 0b10000000; while (1) { LED_on(); _delay_ms(2); LED_off(); _delay_ms(8); } return(0);} For most embedded applications, controlling PWM this way is not practical. PWM output lines on ATmega168A The ATmega168A microcontroller has 3 timers which in turn can control 6 PWM lines.

Fun with RGB LEDs Source Code Example 2. So You Want to Build Electronics. The equipment you need to get started in building electronics. If you look back through the last two years of posts on this blog, you'll see my relatively rapid transition from absolute beginner in electronics to someone who is formidable enough to have their work at least noticed (See HaD every other month). This means I've been fielding a lot of questions from beginners online as to how exactly to get started, and what to buy, and what to do with it. And to answer this, I keep having to pull up the same links to the basic stuff. So lets say you're just getting into electronics and want to get really serious about it, or you're decently far into electronics and just want to see another person's parts shortlist, or you're me and my apartment burnt down right now and I have to restock my entire shop.

What to buy? So here is a gigantic list of everything I would buy right now to replace my entire workshop if mine were to disappear. Arduino’s AnalogWrite – Converting PWM to a Voltage. D-A_converter When I first started working with the Arduino platform (it was also my first experience with microcontrollers), I was a little surprised that analogWrite didn’t actually output a voltage, but a PWM (pulse-width modulated) signal. After all, the ATmega had a A-D (analog to digital) converter along with Arduino’s analogRead. The complementary analogWrite function was there, but no D-A (digital to analog) converter on the AVR chip itself. Fortunately, there is an easy way to convert a PWM signal to an analog voltage. To do so you only need to implement a simple single-pole low pass filter. Does it sound complicated? It isn’t. PWM Primer Pulse width modulation (or PWM as it is most commonly known), is a way of encoding a voltage onto a fixed frequency carrier wave.

With the need for digital communication, a new modulation technique was invented – PWM. PWM outputs (curtesy arduino.cc) When it comes time for us to actually write an output voltage, the 0-255 value lacks meaning. ABCelectronique, portail de l'électronique. 10A H-Bridge Motor Controller - Introduction. Motor control is the core heart of robotics. Without locomotion or any movement a robot is dull and lifeless. The H-bridge is a tried and true concept for DC motor control. It allows you to move motors forward, backward and with varying speeds through PWM (pulse with modulation). This tutorial will take a few steps back from the all-in-one L298 or LMD18245 motor control ICs and look more into how we can build our own H-bridge without the need of an IC.

At first this might sound like a difficult task. How can we, tiny simple people, build something that professional manufacturers put into high power ICs? Well keep reading this tutorial and you'll find out, it's actually easy! 10A H-Bridge Test Video 10A H-Bridge Completed 10A H-Bridge PCB And All Parts 10A H-Bridge With PWM Input Purpose & Overview of this project The main goal for this tutorial is to build a 10 AMP motor controller that can control a DC motor with a digital input. Lab 14: Inter-Integrated Circuit (I2C) communication. I2C (Inter-Integrated Circuit) is a short distance serial interface that requires only 2 bus lines for data transfer.

It was invented by Philips in 1980′s, originally to provide easy on-board communications between a CPU and various peripheral chips in a TV set. Today, it is widely used in varieties of embedded systems to connect low speed peripherals (external EEPROMs, digital sensors, LCD drivers, etc) to the main controller. In this experiment, we will cover an overview of I2C protocol, its implementation in PIC microcontrollers, and the method of connecting single and multiple devices on a common I2C bus.

We will demonstrate the technique by connecting two I2C EEPROM chips (24LC512) and an I2C compatible temperature sensor (DS1631) with PIC18F2550 microcontroller. I2C devices with PICMicro Theory I2C bus has two lines: a serial data line (SDA) and a serial clock line (SCL). Start and Stop conditions Signaling for Start and Stop conditions I2C device addressing Data transfer Acknowledgment. Tutorial 10 for Arduino: Interrupts + Debouncing. Arduino and the AREF pin. Learn how to measure smaller voltages with greater accuracy using your Arduino.

This is chapter twenty-two of our huge Arduino tutorial series. Updated 12/12/2013 In this chapter we’ll look at how you can measure smaller voltages with greater accuracy using the analogue input pins on your Arduino or compatible board in conjunction with the AREF pin. However first we’ll do some revision to get you up to speed. Please read this post entirely before working with AREF the first time. Revision You may recall from the first few chapters in our tutorial series that we used the analogRead() function to measure the voltage of an electrical current from sensors and so on using one of the analogue input pins. And when we say the operating voltage – this is the voltage available to the Arduino after the power supply circuitry. This can easily be demonstrated by connecting an Arduino Uno to USB and putting a multimeter set to measure voltage across the 5V and GND pins.

So what is AREF? External AREF. Arduino Tutorial - A detailed introduction on how to use LEDs. Tutorials. The most fun you can have (after blinking LEDs) is using sensors to detect whats going on in the world and act on that information. However, all sensors have their own methods of interfacing. That can make them a real pain to work with: some need pull-up resistors, some need certain power supplies, some use lots of power, some don't. Since there aren't that many different sensors that people tend to want to use I have collected the most common sensors with code examples and wiring diagrams. Tutorials include: Force sensitive resistor - Used to detect physical pressure such as pinching, squeezing, pushing, brushing. Photocells - Used to detect light/dark, breakbeams, simple object detection. Temperature - Used to determine environmental temperature. Fribotte : Base de données technique.

LiIon_tut.pdf (Objet application/pdf) B e a . s t. [an error occurred while processing this directive] Magnetic Levitation using Hall effect Sensor Feedback, and Matched resonant wireless power transfer This work was completed initially for a final project for Joe Paradiso's class MAS.836 - Sensor systems for Interactive Environments, taken Spring 2oo5.

Click to watch the following movies:Magnet Levitation Movie [100 megs], or in Small form. Resonant Power Transfer movie [95 megs], or in Small form. Motivation: My goal is to build the subsystems to be able to magnetically [stably] levitate a lightbulb that is powered at all times through the air using a matched resonant air-core transformer. In order to levitate a lightbulb, there are three main systems that needed to be explored and techniques that needed to be developed. Implementation: The general goal setup is as shown to the right. Details of the system components are described below. In order to accomplish this, we build a resonant transformer [shown]. Hall Effect Sensing: Performance: Apprendre l'électronique en partant de zéro. Using the I2C Bus. Motors and Microcontrollers 101.

Electric motors are a key way of converting electrical power (voltage and current) into mechanical power (torque and speed), and because electric motors are simple and reliable machines, they can be found all over, in many different shapes and sizes. Just considering a normal (gasoline-powered) car, there are a great number of electric motors: the powerful starter motor and alternatoralternating windshield wiper motorsintermittent-use power windows and door locksthe blower fan that moves hot and cold air into the cabinthe tiny motors inside the CD player And I'm sure you can think of others. But from an electronics perspective, motors are slightly tricky loads to control -- they're not just a resistor! Even for a single applied voltage, their current varies with loading, starting, and stopping, and the energy stored in the magnetic field of the windings means that they are inductive, which can present a danger to other circuit components if it isn't handled properly.

Go give them a try! NerdKits - learn electronics with our educational microcontroller kit. DOCTRONICS home. Robotique - Index des projets. Notion de Résistance Électrique et la loi d'Ohm. RadioLocman free electronic diagram circuits components schematics diagram data sheets semiconductors engineering for engineers and amateurs. Réalisations - Alim. led. Electronique > Réalisations > Alimentations > Alimentation d'une LED Dernière mise à jour : 06/03/2016 Présentation Les lignes qui suivent décrivent comment utiliser une LED de façon isolée ou en groupe, avec des tensions alternatives ou continues. Pour plus de renseignements concernant ce composant, merci de vous reporter à la page Théorie - LED. Bases - Alimentation en basse tension continue Une LED, si on l'alimente directement et sans autre forme de procès à une source de tension continue (pile 9 V neuve par exemple) ou à une source de tension alternative (secondaire d'un transformateur 220V / 9V par exemple), a 99% de chances de griller.

Sur le schéma qui précède, la valeur de la résistance R1 est donnée à titre indicatif, la tension V n'étant pas spécifiée. La LED utilisée pour les deux expériences qui suivent est une LED verte fonctionnant de façon nominale avec une tension de 2,2 V et un courant de 20 mA. Valeurs typiques de tensions et courants pour quelques LED Remarques Oulà ! Diy › Intro. Les Montages Electroniques. Hobby projects - Simple electronic circuits. Computer microphones Learn how to interface electret and dynamic microphones to the standard computer sound card. Metal detectors Theory of operation and schematics of the most common metal detectors used today: Very Low Frequency (VLF), Pulse Induction (PI) and Beat-Frequency Oscillator (BFO). Wireless microphone The wireless microphone transmitter can be built in an afternoon with simple, affordable and widely available parts.

Take care with transmitter circuits.