Cursor

(Difference between revisions)
Jump to: navigation, search
(Specification)
(Applikation)
Line 24: Line 24:
 
* position 2 = 12 cm
 
* position 2 = 12 cm
  
== Applikation ==
+
=== Circuit ===
** Die Geschwindigkeit des Motor wird über einen PWM-Modulator gesteuert
+
* The speed of the motor is controlled by a PWM-modulation
** Der Motor wird über 3 Signale gesteuert: <code>motorOn</code>, <code>side1</code>, <code>side2</code>. Für nähere Informationen siehe [[Media:L6207N.pdf|L6207]]
+
* The motor is controlled by three signals <code>motorOn</code>, <code>side1</code>, <code>side2</code>. For more information see chapter [[Cursor#DC_motor|DC_motor]].
** Es gibt 2 Hall-Sensoren am Anfang und am Ende der Schiene, diese bemerken den Wagen falls er in ihre Nähe kommt (<code>sensor1</code>, <code>sensor2</code>)
+
* There are two [[Cursor#Hall_sensors|Hall-Senors]] at the ends of the rail, which detect the presence of the cursor chariot (<code>sensor1</code>, <code>sensor2</code>)
** Das [[Media:encoder_module.pdf|Inkrement Encoder Modul]] wird benutzt um die Position des Wagens zu berechnen bzw. zu zählen, es hat 3 Ausgänge welche verschiedene Impulse liefern (<code>encoderA</code>, <code>encoderB</code>, <code>encoderI</code>).
+
* The [[Cursor#Encoder|Encoder Module]] is used to count the position of the cursor chariot. Its three outputs deliver different informaton (<code>encoderA</code>, <code>encoderB</code>, <code>encoderI</code>).
** Es gibt 4 verschiedene [[Media:Heb_lcd_schematic.pdf|Knöpfe]] mit welchen man das System steuert: <code>restart</code>, <code>go1</code>, <code>go2</code>, <code>setPoint</code> (im moment nicht gebraucht)
+
* Four [[Cursor#Buttons_and_LEDs|Buttons]] are used to control the system: <code>restart</code>, <code>go1</code>, <code>go2</code>, <code>setPoint</code> (<code>setPoint</code> is only used for optional functionality)
** Mit Hilfe der <code>testOut</code> Pins können z.B. Debuginformationen die [[Media:Heb_lcd_schematic.pdf|LEDs]] ansteuern
+
* The <code>testOut</code> pins can be used to exit debug information of your system, e.g. to drive the [[Cursor#Buttons_and_LEDs|LEDs]]
  
=== Inputs and outputs ===
+
The [[Media:Cursor_Toplevel_Empty.pdf‎|Empty Toplevel Design]] shows all the signals connected to the [[Cursor#FPGA_board|FPGA board]].
 
+
The [[Media:Cursor_Toplevel_Empty.pdf‎|Empty Toplevel Design]] shows all the signals connected to the [http://en.wikipedia.org/wiki/Field-programmable_gate_array FPGA].
+
  
 
== Components ==
 
== Components ==

Revision as of 13:51, 25 November 2014

Contents

The cursor project is an ElN project done at the end of the first semester. It consists in driving a DC motor which moves the cursor chariot with the help of a screw.

Cursor in Action

Specification

Function

The basic specification is the following one:

  • When restart button is pressed, the cursor moves to the start position given by a Hall sensor close to the DC motor.
  • When pos 1 button is pressed, the cursor has to accelerate towards position 1, advance with full speed, decelerate and stop at position 1, be it from the start position or from position 2.
  • When pos 2 button is pressed, the cursor has to accelerate towards position 2, advance with full speed, decelerate and stop at position 2.
Position Range Diagram

The acceleration and deceleration ramps are a function of the position and not of the time. Indeed, it would be very difficult to know when to start decelerating to reach one of the positions if the deceleration was to be produced by a counter. The slope of the ramp has to be chosen such as the acceleration and deceleration distances are in the order of magnitude of 1 cm.

The positions to reach are:

  • position 1 = 8 cm
  • position 2 = 12 cm

Circuit

  • The speed of the motor is controlled by a PWM-modulation
  • The motor is controlled by three signals motorOn, side1, side2. For more information see chapter DC_motor.
  • There are two Hall-Senors at the ends of the rail, which detect the presence of the cursor chariot (sensor1, sensor2)
  • The Encoder Module is used to count the position of the cursor chariot. Its three outputs deliver different informaton (encoderA, encoderB, encoderI).
  • Four Buttons are used to control the system: restart, go1, go2, setPoint (setPoint is only used for optional functionality)
  • The testOut pins can be used to exit debug information of your system, e.g. to drive the LEDs

The Empty Toplevel Design shows all the signals connected to the FPGA board.

Components

The system consists of

Motor control circuit

The chariot DC motor is powered with 12 V. The power board contains an H-bridge controlled by digital signals. On the power board, a 5 V regulator generates the proper voltage for powering the FPGA board.

DC motor

The DC motor is controlled by a L6207 H-bridge driver.

Encoder

The angle of the screw can be measured with the help of an incremental encoder module. The model used on the assembly is a AEDB-9140-A12, which has 500 Counts Per Revolution (CPR).

Hall sensors

The hall sensor is a switch which is working with the hall effect. If a magnet is close to the sensor, the contact closes. For the projects 2 hall sensors are used to identify the left and right limits of the chariot.

FPGA board

The main board is called FPGA-EBS and is the school's main development board. It features many different interfaces and a Xilinx Spartan xc3s500e FPGA.

For additional information see the FPGA-EBS page.

Buttons and LEDs

The Buttons and Leds board is to be attached to the FPGA board. It has 4 buttons and 8 leds which can be used in the design.

Getting started

In order to start the projects you should do the following:

Additional Information

Additional informations for collaborators

Personal tools
Namespaces
Variants
Actions
Navigation
Modules / Projects
Browse
Toolbox