Skip to content

JKUATSES/sesBoardv1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sesBoardv1

contributions welcome GitHub repo size GitHub last commit GitHub commit activity License MIT

Welcome to the JKUAT SES Board repository for management and storage of SESBOARD v1. Additional information about the team and current projects can be found JKUAT SES website.

If you are a new member of the team and have never used git version control before, we highly recommend that you familiarize yourself with it by reading this guide.

How it will look

Top

Top

Bottom

Bottom

Prerequisites

Setup EasyEda

  1. Downloading the files

Once your computer is set up with git, the following lines can be used on any operating system within a terminal configured with git. Users who are using a GUI interface for git should simply add the respective repositories through the interface.

# Download the initial files
git clone https://github.com/JKUATSES/sesBoardv1

# Go into our new directory
cd sesBoardv1
  1. Open the Schematic file and PCB file in EasyEda

Opening the 2 files

Opened EasyEda

Board Design

1. Micro-USB connector

Micro-USB connector

Pin configuration

  1. Vcc (+5V) +5V DC voltage

  2. D- Data -

  3. D+ Data +

  4. ID Mode detect

  5. Gnd Ground

Specifications

  1. Micro USB – Type B/SMT

  2. Gender: Female

  3. Number of Pins: 5

  4. Mating cycle: More than 5000 times

  5. Current rating: 1A

  6. Voltage Rating: 30V (max)

Use

The micro USB connector can be used to power or communicate with devices. The micro USB Jack has five pins through which the power and data are transferred, the 4th pin ID is used for mode detection, this indicates if the USB is used only for power or for data transfer. The D+ and the D- pins should be connected to the D+ and D- pins of the host respectively. They also require a pull-down resistor of value 15K each for the data to transfer.

2. Voltage regulator

Voltage regulator

Pin configuration

  1. Adjust/Ground - This pin adjust the output voltage, if it is a fixed voltage regulator it acts as ground

  2. Output Voltage (Vout) - The regulated output voltage set by the adjusted pin can be obtained from this pin

  3. Input Voltage (Vin) - The input voltage which has to be regulated is given to this pin

Specifications

  1. Low Drop-Out (LDO) Voltage regulator
  2. Fixed Voltage type: 1.5V, 1.8V, 2.5V, 2.85V, 3.3V and 5V
  3. Output current is 1000mA
  4. Maximum Drop-out Voltage: 1.3V
  5. In-built Current Limiting and thermal protection.

Use

Using the AMS1117 is pretty much straight forward. If it a fixed voltage regulator just power the IC through the Vin pin and the regulated output can be obtained in the Vout pin. The Adj/Ground pin in this case acts only as a ground pin and is grounded. Also, a capacitor can be added at the input and output side to filter out the noise. In this case, I added a bulk capacitor of 10uF near the source to act as a reservoir of charge. The local decoupling capacitor of 100nF is near the load to filter out noise. I also added a power LED in parallel to indicate if the board is on or off.

3. USB to TTL module

USB to TTl module

Pin configuration

  1. 16 VCC POWER Positive power input port, requires an external 0.1uF power decoupling capacitance
  2. 1 GND POWER Public ground, ground connection for USB
  3. 4 V3 POWER connects of VCC to input outside power while 3.3V connects of 0.01uF decoupling capacitance outside while 5V
  4. 7 XI IN Input of crystal oscillator, attachment of crystal and crystal oscillator capacitance outside
  5. 8 XO OUT Opposite output of crystal oscillator, attachment of

crystal and crystal oscillator capacitance outside

  1. 5 UD+ USB signal Directly connect to D+ data wire of USB bus, set up

pull-up resistor internal

  1. 6 UD- USB signal Directly connect to D- data wire of USB bus
  2. 2 TXD OUT Serial data output(opposite phasic output of CH340G)
  3. 3 RXD IN Serial data input, set up controlled pull-up and

pull-down resistor

  1. 9 CTS# IN MODEM liaison input signal, clear sending, active with

low(high)

  1. 10 DSR# IN MODEM liaison input signal, data equipment is ready,

active with low(high)

  1. 11 RI# IN
  2. 12 DCD# OUT MODEM liaison input signal, carrier wave detection,

active with low(high)

  1. 13 DTR# OUT MODEM liaison output signal, data endpoint is ready,

active with low(high)

  1. 14 RTS# OUT MODEM liaison output signal, request to send, active

with low(high)

  1. 15 R232 IN Assistant RS232 enable, active with high, set up

pull-down resistor internal

Specifications

  1. Full speed USB device interface conforms to USB Specification Version 2.0, only needs crystal and capacitance external.
  2. Hardware full duplex serial interface, set transceiver buffer, supports communication baud rate varies from 50bps to 2Mbps.
  3. Supports common MODEM liaison signal RTS, DTR, DCD, RI, DSR and CTS.
  4. Supports IrDA criterion SIR infrared communication, supports baud rate varies from 2400bps to 115200bps.
  5. Support 5V and 3.3V source voltage.

Use

CH340G chip set up USB pull-up resistor internal, UD+ and UD- pins must be connected to USB bus directly. CH340 chip set up power-up reset circuit internally. When the CH340 chip is working normally, the outside must supply a 12MHz clock signal to the XI pin. In general, a clock signal is generated by an inverter in CH340 through oscillating of crystal keeping frequency. A crystal of 12MHz between XI and XO, XI and XO connect a high-frequency oscillator capacitance to ground respectively can compose the peripheral circuit. CH340 chip supports 5V and 3.3V power voltage. When using 5V source power, the VCC input 5V power and the pin of V3 must connect with 4700pF or 0.01uF decoupling capacitance. When using 3.3V power voltage, connects V3 with VCC, and input 3.3V power voltage. And the other circuit voltage which is connected with CH340 is no more than 3.3V. CH340 automatically supports a USB device suspending to save power consumption. NOS# is low–level can forbid USB device suspending. In asynchronous serial interface mode, the CH340 chip contains these pins: data transfer pin, MODEM liaison signal pin and assistant pin. The data transfer pin contains the TXD pin and RXD pin. When the serial interface is idle, RXD must be high-level. If R232 is high-level, use the assistant RS232 function, then the RXD pin automatically inserts an inverter internal, and low-level is in default. When serial interface output is free, the TXD in CH340H and CH340T is high level, TXD in CH340R is low-level. MODEM liaison signal pin contains: CTS#, DSR#, RI#, DCD# and RTS#. All these MODEM liaison signal are controlled by a computer application program and the application program defines function.

4. Status LEDs

Status LEDs

Pin configuration

  1. VCC - where the voltage is applied
  2. GND - connected to the ground terminal

Specifications

  1. Package: 0805
  2. Emitting colours: Blue or cool white
  3. Forward Current (IF): 20mA
  4. Forward Voltage (VF): 2.9V
  5. Power Dissipation:68mW
  6. Operating and Storage Temperature: -40 to 100°C

Use

The resistor used is based on this formula R = (Vs - Vf)/If where R is the resistor of the led in series, Vs is the source voltage, 3.3v, Vf is the forward voltage of the resistor, 3v and If is the desired forward current passing through the led, 20mA. Using this online led calculator we got the expected resistor values of 15.

5. Switches

Switches

Use

Switch debouncing is one of those things you generally have to live with when playing with switches and digital circuits. If you want to input a manual switch signal into a digital circuit you'll need to debounce the signal so a single press doesn't appear like multiple presses. The basic idea is to use a capacitor to filter out any quick changes in the switch signal. Starting with the switch open.

  • The capacitor C13 will charge via R7.
  • In time, C1 will charge
  • Therefore the output of the inverting Schmitt trigger will be a logic 0.

Now close the switch

  • The capacitor will discharge via R7.
  • In time, C1 will discharge.
  • Therefore the output of the inverting Schmitt trigger will be a logic 1.

But what about bounce conditions? If bounce occurs and there are short periods of switch closure or opening, the capacitor will stop the voltage at Vb immediately reaching Vcc or GND. Although, bouncing will cause slight charging and discharging of the capacitor, the hysteresis of the Schmitt trigger input will stop the output from switching.

6. Microcontroller unit

Microcontroller unit

Pin configuration

Check out the schematics for more information.

Specifications

Check out the schematics for more information.

References

  1. https://randomnerdtutorials.com/esp32-pinout-reference-gpios/
  2. https://i0.wp.com/randomnerdtutorials.com/wp-content/uploads/2018/08/esp32-pinout-chip-ESP-WROOM-32.png?resize=1024%2C523&quality=100&strip=all&ssl=1
  3. https://robu.in/wp-content/uploads/2019/03/Schematic-WeMos-LOLIN32-V1.0.0-based-on-ESP32-Rev1-Wifi-Bluetooth-Board-ROBU.IN_.pdf
  4. https://www.mpja.com/download/35227cpdata.pdf
  5. https://pbs.twimg.com/media/Cu75DCQVYAE1R5A.jpg
  6. https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32_datasheet_en.pdf
  7. https://www.digikey.com/en/resources/conversion-calculators/conversion-calculator-led-series-resistor
  8. https://github.com/nodemcu/nodemcu-devkit-v1.0/blob/master/NODEMCU_DEVKIT_V1.0.PDF
  9. https://circuitdigest.com/microcontroller-projects/design-your-own-esp-modules-for-battery-powered-iot-applications
  10. https://stm32-base.org/boards/STM32F103C8T6-Blue-Pill.html
  11. https://jlcpcb.com/capabilities/Capabilities
  12. https://jlcpcb.com/parts/componentSearch?isSearch=true&searchTxt=TP4054

Sponsor Thank You!

  1. JLCPCB - donation of PCB fabrication runs
  2. Jeff Mboya - donation of SMT assembly funds

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Releases

No releases published

Packages

No packages published