PROJECT Mislestone 1
PROJECT Mislestone 1
PROJECT Mislestone 1
Purpose of Project:
To produce an in expensive carrier kit for STM32F3 discovery board, which is reliable, safe,
and easy to use. On the other hand to acquire the skills to design a 2 layer Printed Circuit Board
(PCB), which include various interface modules that helps students in performing all the second
semester labs and also for gaining real world experience.
Scope of project:
To fully implement all the other labs. To gain the knowledge of real world working models by
using STM32F3 Discovery board.
Intended Audience:
Project evaluator and the peers.
In the real world, it helps a person who try to control other things like motors, automation of
home.
Description of solution:
Data Acquisition problem is solved by using digital systems. The analog outputs from sensors
(in real world) are conditioned with circuitry to make them easily converted to digital.
Transfer of digital data requires a Protocol to govern how the data is formatted. The standard
ones allow interoperability between sensors, actuators, and controllers. Therefore we are using
RS 232 protocol and SPI.
Digital logic outputs don't have enough current to drive much more than LEDs. So we need
circuits that are capable of driving much larger currents than what can be supplied from logic
outputs. This can be achieved by using ULN2803 which has 8 drivers in it. We can use one when
we drive stepper and DC motors.
We are using opto isolators instead of relays, because relays consume more power, expensive and
they are bulky, so by using opto isolators we are decreasing the power consumption and other
noise related problems.
Instead using the hardware designed driver circuit for motor control, we are using the simple
driver chip L293d, which decreases the cost and increases the reliability.
Circuit below shows an optoisolator triggering a Triac that can be used to control a load.
Circuit diagram for motor control using triac and opto isolator
H-Bridge driver:
We can use prepackaged devices:
a. L293/L293D Quad Half-H-Driver for small loads
b. L298 Quad Half-H-Driver for larger loads.
c. L6201, LMD18200 Integrated Drivers
There are more advanced versions that use MOSFETS, and provide current feedback.
The MOSFET versions can operate at much higher PWM frequencies, and are preferred.
LCD Interface:
Backlight PWM
PB8 TIM16_CH1
LCD Data Interface
PD8 to PD15 LCD D0 to D7
PD3 LCD R/W
PD4 LCD RS
PD7 LCD E
DC Motor Interface:
TIM15 used to generate PWM signals
- PB14 for 1,2EN
-PB15 for 3,4EN
- 4 GPIO's
- PC0, PC1, PC2, PC3 for 1A,2A,3A,4A.
- 2 ADC's for Tachometers
- PB0 ADC3_IN12 (for motor on 1,2)
- PB13 ADC3_IN5 (for motor on 3,4)
Analog Interface:
--PA1 ADC1_IN2
-- PA2 ADC1_IN3
-- PA3 ADC1_IN4
-- PF4 ADC1_IN5
-- PA4 - DAC1_OUT1
MAX3232_BLOCK DIAGRAM
Item name
Stm3f3 discovery kit
Pcb
Diodes
2N3904-APCT-ND
MOC3011M-ND
Max3232
Uln2803 a
Lcd module
Ln293d - motor driver ic
Lm7805 ic regulator
Db 9 connector
Crystal oscillator
Db9 connector pin
Capacitors
Resistors
Miscellaneous
Total
Team members:
quantity
01
01
20
03
03
02
02
01
01
02
02
03
02
-
price in $/unit
30
20
0.25
0.94
1.14
0.92
2.0
5.39
0.8
1.0
1.0
0.5
-
total in $
30
20
04
0.75
2.8
2.28
1.84
2.0
5.39
1.6
2.0
03
01
10
10
06
100