Difference between revisions of "Printed circuit board"

From Bike Wiki
Jump to navigation Jump to search
Line 1: Line 1:
The '''printed circuit board''', or '''PCB''' is the brain that receives all the data from the bike's sensors and sends commands to the actuators based on the sensor data. The [[Arduino]] is attached to the PCB. This page is for current individual components that are on the PCB currently. For components that are removed, they are now moved to the * [[Components Previously on the PCB]].  
+
The '''printed circuit board''', or '''PCB''' is the brain that receives all the data from the bike's sensors and sends commands to the actuators based on the sensor data. The [[Arduino]] is attached to the PCB. This page is for current individual components that are on the PCB currently. For components that are removed, they are now moved to the [[Components Previously on the PCB]].  
 
==Overview of Individual Components==
 
==Overview of Individual Components==
 +
===DUE Shield===
 +
This component hold the Arduino. For more information, visit the [[Arduino]] page. For pin connection, visit _____ page.
 +
 
===Operational Amplifier (Op-Amp)===
 
===Operational Amplifier (Op-Amp)===
 
It amplifies the difference between two voltage inputs and sends this amplified signal to the DUE. In addition to its purpose, the op-amp (in combination with an RC integrator) converts a square-wave signal from the RC to a sinusoidal wave because the motor controller only accepts sinusoidal wave forms.In the report they discuss the general purpose of the op-amp, its inputs and outputs, and the reason for choosing a specific model (MCP6401). There is no documentation regarding why the team decided to change to OP344 later on (the current op-amp installed in the PCB). After looking at the specification sheets of the two components, it seems that the OP344 is better with the common mode rejection ratio. In other words, it is better in rejecting signals that are in-phase and appear simultaneously.
 
It amplifies the difference between two voltage inputs and sends this amplified signal to the DUE. In addition to its purpose, the op-amp (in combination with an RC integrator) converts a square-wave signal from the RC to a sinusoidal wave because the motor controller only accepts sinusoidal wave forms.In the report they discuss the general purpose of the op-amp, its inputs and outputs, and the reason for choosing a specific model (MCP6401). There is no documentation regarding why the team decided to change to OP344 later on (the current op-amp installed in the PCB). After looking at the specification sheets of the two components, it seems that the OP344 is better with the common mode rejection ratio. In other words, it is better in rejecting signals that are in-phase and appear simultaneously.
 +
 +
{| class="wikitable"
 +
|-
 +
! Pin Label !! Connected To
 +
|-
 +
| 1 (OUT) || Bike Motor Pin 3
 +
|-
 +
| 2 (V-) || BGND
 +
|-
 +
| 3 (+IN) || Isolator 2 Pin 7 && Servo 2 Pin 1
 +
|-
 +
| 4 (-IN) || Bike Motor Pin 3
 +
|-
 +
| 5 (V+) || REG5V
 +
|}
  
 
===Opto-Isolators 1 & 2===
 
===Opto-Isolators 1 & 2===

Revision as of 00:55, 17 May 2020

The printed circuit board, or PCB is the brain that receives all the data from the bike's sensors and sends commands to the actuators based on the sensor data. The Arduino is attached to the PCB. This page is for current individual components that are on the PCB currently. For components that are removed, they are now moved to the Components Previously on the PCB.

Overview of Individual Components

DUE Shield

This component hold the Arduino. For more information, visit the Arduino page. For pin connection, visit _____ page.

Operational Amplifier (Op-Amp)

It amplifies the difference between two voltage inputs and sends this amplified signal to the DUE. In addition to its purpose, the op-amp (in combination with an RC integrator) converts a square-wave signal from the RC to a sinusoidal wave because the motor controller only accepts sinusoidal wave forms.In the report they discuss the general purpose of the op-amp, its inputs and outputs, and the reason for choosing a specific model (MCP6401). There is no documentation regarding why the team decided to change to OP344 later on (the current op-amp installed in the PCB). After looking at the specification sheets of the two components, it seems that the OP344 is better with the common mode rejection ratio. In other words, it is better in rejecting signals that are in-phase and appear simultaneously.

Pin Label Connected To
1 (OUT) Bike Motor Pin 3
2 (V-) BGND
3 (+IN) Isolator 2 Pin 7 && Servo 2 Pin 1
4 (-IN) Bike Motor Pin 3
5 (V+) REG5V

Opto-Isolators 1 & 2

Isolation devices allow for multiple power domains to coexist and communicate, which means that sensitive circuits are protected from switching circuits. As one can see in figure 1, the PCB is separated into two domains (5V and 3.3V), where the components placed in that domain only deal with that certain voltage. The report does go into good detail explaining the function the opto-isolator, why they chose the IL711 (which we currently use), and how it works.

Differential Line Receiver

Translates differential voltage signals into standard logic signals. In this case, it is used to reduce the noise from the transmission by differentiating two inputs and then cancelling out any differences. Since the signals transmitted from the encoder has to travel a large amount of distance to reach the DUE, a significant amount of noise is produced. The second line receiver (the lower one in the figure 1) takes in a total of six inputs from the encoder connector. Specifically, the inputs are A, B, and C. Channels A and B reads the markings of the inner disk of the encoder (i.e. the current position of the motor) and channel C outputs one pulse per revolution to indicate number of turns. Thus, the line receiver intakes these noisy signals and outputs a cleaner signal. Furthermore, we believe that the the first line receiver (the one closer to the top in figure 1) is not currently used since none of its inputs are being used.

Voltage Regulator

As one can guess from the name, this component stabilizes the voltage to a constant level. On the PCB, the regulator takes in the voltage outputted by the DC converter and outputs the stabilized voltage to other components. The present regulator (NCV8705) is a low drop-out (LDO) linear voltage regulator. As a linear regulator, the component acts as a variable resistor, meaning the regulator adjusts the amount of resistance to vary the output voltage as desired. Furthermore, in order for a regulator to work, the input voltage must always be greater than the output voltage (in most cases the input has to be greater than the output by a minimum of 2V). LDO regulators basically reduces the minimum the input voltage has to be relative to the output voltage. The main advantages for having a LDO linear voltage regulator is because of its simplicity and they are small in size.