Limbi Generation #2 Fall 2019

Limbi: Printed Circuit Board

Authors:

Alondra Vivas

Colin Rogers

Introduction

This project consists of 2 separate PCBs. The PCB located within Limbi connects to the 3Dot, the pca9685 I2C chip, and the H-Bridge chips. The purpose of the PCB in Limbi is to provide the control for four additional motors that can be powered by an external source at a higher voltage than what the 3Dot can supply.  This is important in order to get the torque needed to move the weight of multiple limbs. The PCB located within the modules connects to the arduino nano, the H-Bridges, and the pca9685 I2C chip. The functionality of this shield is to allow the control of four motors at once. The modules need to be able to control four separate connectors. This blog post analyses the different methods we used for bread boarding, the testing done, fritzing diagrams, schematics, EagleCAD, and ordering the PCBs.  The information in the rest of this post shows the evolution of the PCBs designed for Limbi. All of the PCBs seen in this blog post were made by Colin Rogers.

Limbi Electronics

This section analyses the electrical components within Limbi. It focuses on the components that make up the different shields for Limbi.  Both shields will use one Pca9685 and two L293DD chips.

3Dot

Within Limbi, we decided to use the 3Dot because of its compatibility with the ArxRobot App. It is able to control a multitude of motors, Limbi Generation #2 consists of 4 separate motors. It is also very compact to allow for it to easily fit within limb 2.  The shield will connect to the SDA and SCL pins, as well has ground and 3v3.

Below shows the pinout diagram for the 3Dot.

Loader Loading...
EAD Logo Taking too long?

Reload Reload document
| Open Open in new tab

(1) 3Dot Block Diagram

Shield

The shields for both the 3Dot and the Nano Every use essentially the same components.  The interface with the pca9685 I2C chip in order to get the number of pwm channels needed to run the two H-Bridge chips (l293DD).  This allows for control of four motors.

Shield Components

H Bridge

An H-Bridge is a motor control chip that can be controlled by a micro-controller. The one being used here is the L293DD.  It allows for the control of two motors.

According to the datasheet shown below, an H-bridge is compatible with 3v3 logic but has to be powered with more than 4.5 v.  This is important as the pca9685 uses 3v3 logic. Also, both vs and vss can go up to 36v which is why both are running at 7.4v.  The reason for this specific voltage is because when the motors were tested with 5v, they didn’t have adequate torque.  The next easiest battery voltage available is 7.4v.

Figure 1. H-Bridge Datasheet

(2) H-Bridge Datasheet

This is the pinout used by the L293DD. The output pins connect to the motors and can control two motors at a time.  The input/enable pins connect to the pca9685 and allow for full control of the motors.

Figure 2. Pinout (L293DD)

(3)Pinout (L293DD)

Pca9685 (I2C)

The image below shows the pinout for the pca9685 chip. It is an I2C chip that allows for the control of 16 separate pwm channels. Two entire H-Bridge chips can be controlled, which allows for the full control of four distinct motors. Limbi Generation #2 is using a micro gear motor in each of its 4 joints. The important pins here are the LED pins. These are the pwm channels that are used to control the H-Bridge motor control chips.  The SCL and SDA pins allow for serial communication to the 3Dot.

Figure 3. Pinout (pca9685 chip)

(4)Pinout (pca9685 chip)

HM-11

Below is the HM-11 bluetooth module and its pin out.  It’s connected to 3Dot via the Tx and Rx pins. It’s not part of the shield, but it’s an integral part of controlling Limbi.  This allows for wireless serial communications between the Arxterra App and the micro controller. The module that was attached to the bottom of the 3Dot was having connectivity issues; therefore, a new module was wired directly to the Tx and Rx pins.  This module was chosen for its compatibility with the app and the 3Dot.

Figure 4. HM-11

(5)HM11 Bluetooth module

Schematic

The schematic down below show the basic idea of what Limbi’s shield will need to perform.  It shows that it needs to be able to control four motors.

General Iteration

This is an early general concept of how the shield would be connected and utilized.  It shows that the external motors will be attached to a discrete shield. This would attach to Limbi via the SCL and SDA pins.  The encoders are then read by the MISO, MOSI, SS, and A4 pins.

Figure 5. Schematic

EagleCAD V1

Schematic

This is the V1 design for the shield.  It still uses the L293D variant of the H-bridge which is a larger through-board version of the L293DD.  Another thing to note is that it had a built in 5 volt voltage regulator to power the H-Bridge chips.  This was later deemed unnecessary.  The chips can be powered with voltages between 4.5v and 36v,  which means that using a 5v regulator would be unnecessary.  The chips can be powered with the same 7v rail as the motors.

Figure 6. V1 Schematic

Layout

The image shown below is the V1 Eagle CAD board.  It’s rather long at over 60mm.  This version hasn’t adopted the star configuration for the power yet.  The star configuration keeps components from being daisy chained, which would cause a larger resistance in the traces.  The power traces are on the thin side and will be made thicker in later designs.  The large H-Bridge chips take up more space than is necessary.

Figure 7. V1 Layout

EagleCAD V2

Schematic

The  second iteration of the PCB schematic is shown below. Improvements were made from previous feedback, however, for the third iteration more suggestions were given such as: add a tittle block, add filter capacitors, need connectors for the shaft encoders, too many JST connections, something larger for 7v is needed and a possibility of adding encoder signals to J8 to J11 and switching 100 mil connectors, implementation of background management, redesigning with 3dot on-board battery where a quick solution is made by replacing all the JST connectors with 100mil regulator connectors.

Figure 8. V2 Shcmatic

Layout

The layout below had more feedback after the last meeting. The feedback given to improve upon this design was: switch grid to mils not mm, display the grid, place parts on the grid, add vias in order to increase effectiveness of ground planes, place 0,0 at the origin, correct the width to mach the 3Dot’s 3.5cm standard, and that this board can be a lot cleaner. This board also adopts the smaller L293DD chip.

Figure 9. V2 Layout

Board

This board was redesigned to fit the other way to accommodate the 3 Dot battery. The image shows a render of the top side of this shield. The battery would have to be removed in order to fit this shield.

Figure 10. Top side of the shield

This is another rendering of the board without the components.

Figure 11. Shield without components

EagleCAD V3

Schematic

The schematic for v3 is the same as v2 except for the different connectors for the motors.

Figure 12. V3 Schematic

Layout

This is the layout for v3.  Smaller 2 mm connectors are used here in order to bring down the size of the footprint of the board.  It still hasn’t adopted the star configuration for the power and has more ground pads than necessary.  The power is a reason why it was not approved.

Figure 13. V3 Layout

Board

This is a rendering of the top side of the board.  This is what it would have looked like if it was manufactured.  it was never put into production, however because of the reasons stated above.

Figure 14. V3 Board

EagleCAD V4

Schematic

The schematic for v4 is nearly the same as v3, the only thing that changed was the board layout and the additional connector for the digital pins.

Figure 15. V4 Schematic

Layout

This is the V4 (final) design of the 3Dot shield.  It was made slightly taller than V3 in order to accommodate the new connectors for the encoders digital inputs. It’s 48 mm long and has an improved power system overall.  This shield has thick power traces, better ground routing, and the star configuration for the power. This will allow for full motor control of all joints in Limbi

Figure 16. V4 Layout

Cubic Modules Electronics

The components in the modules are primarily the same except for the photo interrupters and the Arduino Nano Every.

Arduino Nano

The Arduino Nano Every will be the micro controller that controls the cubic modules.  It was chosen for it’s small footprint and its inexpensive cost. These boards allow the modules to communicate with the 3Dot.  They will be “dumber” than the hardware in Limbi in that they will only receive commands and not give them.

Figure 17. Arduino Nano Every

(6)Arduino Nano Every

EagleCAD V1

Shield

This shield design is very similar to the one for the 3Dot except it uses the nano as the controller instead. It has additional connectors for the photo interrupters.  It didn’t get approved for the same power reasons as the 3Dot V1 shield.

Figure 18. V1 Schematic

Layout

The Nano attaches to the middle connections on the board.  This didn’t get approved the first time due to a lot of the same reasons as the Limbi shields.  It needed the star configuration for the power rails.

Figure 19. V1 Layout

Board

This is a manufacture rendering of the board.  It was never put in production, however, because of the same power issues as stated on top.

Figure 20. V1 Board

EagleCAD V2

Shield

This is the schematic for the nano every v2 (final) shield.  It’s very similar to the previous one except it adopts the same 2 mm connectors as the later 3Dot shields.

Figure 21. V2 Schematic

Layout

Below is the board layout for the nano every v2 shield.  the big differences here are the change in connectors and a smarter power layout.  It adopts the star configuration for the power like the final 3Dot board. The 2 mm connectors can be seen at the top, these were implemented to save space.  This design has ground distributed on the entire bottom of the board and doesn’t have unnecessary ground planes on the top side.  It’s an overall better layout which is why it was chosen as the final board.

Figure 22. V2 Layout

Board

This is a rendering of what the final manufactured board looks like.

Figure 23. V2 Board

PCB Manufacturing

Once we got the approval to go forward with the manufacturer, we went to the JCL PCB website. It was confusing navigating through the webpage but we utilized the blog post by Jaap de Dood which can be found by clicking the following: JLCPCB DRC and Ordering. All in all, the process was straight forward we had an issue where we didn’t upload the Drill file with the Gerber file which caused our order to get canceled. Once we uploaded it correctly we didn’t encounter any other problems. For shipping we chose fast shipping which added to the cost. It takes 3-4 days to build, 2 days were added because we chose a blue color. If we would’ve chosen green then it would’ve taken 2 days to build. Fast shipping takes 2-4 business days.

References/ Resources