Original text


Universitatea Tehnica Iasi - Fac. Automatica si Calculatoare
Embedded Computer
Luni, 4 Feb.,
Ora 13:24

Lucrarea de laborator nr. 6

  • L6.1 Denumire:


  • Faruri pentru automobile orientabile prin miscarea volanului



  • L6.1 Prezentare generala, scop.


  • The lab work presents an easy-to-use dsPIC DSC-based system for the development of moving headlights after steering the steering wheel. The details of the use of analogue / numeric signals for the acquisition of the information provided by the motion sensors and the transmission of this information to the actuators that direct the light source are monitored. Laboratory review will allow you to master the essential elements about interfacing analogue output sensors using the analog / numeric conversion module in the dsPIC33 microcontroller structure.




  • L6.3 Resources:


  • Analog / numeric dsPIC mode I

    DsPIC Starter Kit Development System,
    3-Stroke Extension, Potentiometer / Steering Wheel,
    USB Interconnect Cable,
    MPLAB C30 Oscilloscope .


  • L6.4 Prgram example:


  • Prototype program



  • L6.5 Experiment Run / Tracking Mode:


    • MPLAB C30 is punched on the PC using the dsPIC Digital Signal Controller CD;
    • Connect the USB cable between the PC and the dsPIC DSC Starter kit board to transfer the code.
    • Connects servomotors corresponding to the 3 axes;
    • A project with source Lab6.c is made in a personal directory;
    • Configure MPLAB and the corresponding programmer accordingly;
    • It is intended to get the HEX file and transfer it to the dsPIC DSC Starter Kit;
    • Analyzing files resulting from the compilation process;
    • The correct execution of the program is being monitored;
    • Solving prototype issues;

    1. - Analyze the internal structure of the A / D module;
    2. - Analyze how to use analog inputs on the dsPIC DSC starter Kit system;
    3. - Identify unused analog inputs
    4. - Analyze the application of a variable voltage at the AD4 input




  • L6.6 Proposed Issues:


  • 1. Modify the prototype program to obtain the maximum servo rotation angle.

    2. Make a program that will turn the servo LED counterclockwise to the steering wheel.

    3. Perform a program sequence that will simultaneously activate 2 identical servo LEDs.

    4. Perform a program that will activate the 2 servo LEDs in opposite snoses.

    5. Perform a program that will activate the SERVO LED only within 30 degrees.



  • L6.7 The experiment may be extended to:


  • - Realizarea sistemelor de orientare a oglinzilor ;
    - Realizare control automat pedala acceleratie ;
    - Realizare sisteme pozitionare auomata turela;
    - Realizarea sistemelor de directie ;


  • L6 .8 Referinte documentare:


  • © 2019 Fl. Pantilimonescu - Fac. Automatica si Calculatoare Iasi