Category Archives: Capability Test

Bringup of ESP32 Gateway Board

Arduino

Introduction

Here is one more blog where the ESP32 Gateway bring up is displayed along with a video.

The ESP32 Gateway Board described here would be tested and its bring-up would be shown. Here is the block diagram of the board:

Block diagram gateway

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bringup Steps

Here are some of the bring-up steps followed for testing:
1. Visual inspection: Quick check to ensure that all components are soldered as per the orientation and visual shorts exist.
2. Power and clock check: Quick power test on the PCB to check for open short test. Using the multimeter to quickly test the 3.3V and 5V supply. The clock output from the oscillator was tested at 50Mhz.
3. USB connection: USB cable was connected to the J10 port. 5V and 3.3V supply was good on the board and coming at test points. Checked on oscilloscope to measure voltage ripple which is under 5%.
4. Reset check: The reset was asserted and de-asserted by TPS3895 as expected.
5. USB to UART connections: An external board was used to connect the ESP32 UART port to USB Port on the board.
6. ESP32 detection: The factory programmed ESP32 comes with the Wifi stack and can be easily detected as the WIFI host with the name ESP32. If the ESP32 is out of reset it would show esp32 wifi LAN which can be connected to. It again indicates it is alive and functional.
7. LED programming: Ardunio was selected to test the board as it is easy to program and most of the drivers are easily available. Programmed the LED program to test the led and also testing the programming sequence of JP1.
8. Switch detection: Next quick program which detects switch press and led lighting up.
9. Mounting the Click board: Mounted the ADXL345 accelerometer from Mikro Electronica on the click connector. The LED on accel click switches on and the supply stays stable for 3.3v and 5v.
10. Testing of i2c interface: Detected the device at 0x1d and 0x51. Read through the register values and moved the boards to check the accelerometer output.

i2c_scanner_Gatway

 

 

 

 

 

 

 

 

 

 

11. Testing of spi interface: Changed the Mikroe Accell click board to spi mode and tested the spi operation on the board using ESP32 module.
12. Testing other examples with esp32: The board was tested with other software examples specified at the Sparkfun website to check for power, operation, and functionality.
13. Testing of LAN8710 device. The device was detected using the MDC/MDIO pins. Ethernet cord was connected to the port and the activity led blink was observed. More tests are underway on the board.

Here is the link to the video of the board displaying power-up status detecting i2c devices on board and on module. The next video would contain some additional tests with ethernet port. Arduino code used with the esp32 rapid development click board is available at link.

Additional read:

  1. ESP32 Gateway Board Design using Circuit Tree
  2. Custom board development with Arduino.

Bringup of ESP32 Click Board

Introduction

In this blog, we describe how are our boards are hardware tested after prototypes are available. This testing is done to ensure that the boards designed work and work as per requirements.

The ESP32 click Board described here would be tested and its bring-up would be shown. Here is the block diagram of the board:

ESP32 Block diagram

ESP32 Block diagram

 

 

 

 

 

 

 

 

 

 

 

 

 

Bringup Steps

Here are some of the bring-up steps followed for testing:
1. Visual inspection: Quick check to ensure that all components are soldered as per the orientation and visual shorts exist.
2. Power check: Quick power test on the PCB to check for open short test. Using the multimeter to quickly test the 3.3V and 5V supply.
3. USB connection: USB cable was connected to the J10 port. 5V and 3.3V supply was good on the board and coming at test points. Checked on oscilloscope to measure voltage ripple which is under 5%.
4. Reset check: The reset was asserted and de-asserted by TPS3895 as expected.
5. FT232 Driver detection: The device was quickly found on the laptop and the driver was easily found on the web. This indicates that the USB to UART device ft232 is functioning correctly.
6. ESP32 detection: The factory programmed ESP32 comes with the Wifi stack and can be easily detected as the WIFI host with the name ESP32. If the ESP32 is out of reset it would show esp32 wifi LAN which can be connected to. It again indicates it is alive and functional.
7. LED programming: Ardunio was selected to test the board as it is easy to program and most of the drivers are easily available. Programmed the LED program to test the led and also testing the programming sequence of JP1.
8. Switch detection: Next quick program which detects switch press and led lighting up.
9. Mounting the Click board: Mounted the ADXL345 accelerometer from Mikro Electronica on the click connector. The LED on accel click switches on and the supply stays stable for 3.3v and 5v.
10. Testing of i2c interface: Detected the device at 0x1d. Read through the register values and moved the boards to check the accelerometer output.

i2c_device_detected

 

 

 

 

 

 

 

 

 

 

 

 

11. Testing of spi interface: Changed the Mikroe Accell click board to spi mode and tested the spi operation on the board using ESP32 module.
12. Testing other examples with esp32: The board was tested with other software examples specified at the Sparkfun website to check for power, operation, and functionality.
13. Testing of battery charging and functionality. The battery of 220mA was connected to the battery connector and charged. The voltage was measured on the port. Shortly afterward the battery-powered operation was tested.

Bring up and the testing of the board were fun and quite enriching as with each board it brings pleasure to see circuit tree platform getting mature.

Here is the link to the video of the board displaying power-up status reading accelerometer data from the module. Arduino code used with the esp32 rapid development click board is available at link

Additional read:

  1. ESP32 Rapid Development Kit Design using Circuit Tree
  2. Custom board development with Arduino.

Custom ESP32 Board bringup with Ardunio

Challenges:

Ever wondered how you would support the Arduino platform bring up when your custom board is different than the ExpressIF devC board. If you have just started working on the platform here are the top three challenges you would come across:
1. Arduino pin numbers mapping with board pins.

Ardunio maps the pins based on the GPIO’s of the ESP32. Many a time young engineers get stuck when they create software and it does not work.

2. Program and reset the assertion sequence on the board.

ESP32 needs the GPIO0 set to low so that ESP32 can enter in the program state. This is done at power-up and after programming, the GPIO0 pins need to be driven high.

Failed_to_connect_to_ESP32

 

 

 

 

 

 

 

3. Pins numbers different than Ardunio standard pins.

Ever wondered if the i2c pins or other function pins are different than the Arduino defined pins on board. For instance, esp32 assumes that the i2c pins are set at 5, 6 by default always. Most of the young engineers do wonder how they would connect the pins which in case of esp32 click board was on 22 and 23. For i2c the code attached can be used to quickly scan the i2c bus.

 

ESP32 Gateway board


Introduction: 

ESP32 Gateway board is the second board designed using circuit tree application having following feature set:

  1. ESP32D-WROOM Module used.
  2. Mikro click connectivity on board. More details at https://www.mikroe.com/mikrobus
  3. 12V Power input for connecting DC jack.
  4. 10/100 Base T Ethernet port
  5. USB to UART cable connector for connecting FTDI USB to UART cable.
  6. Onboard regulators of 3.3v/5V along with control logic
  7. Switch and LED’s to provide status.
  8.  4 layer design

The board has been designed autonomously by Circuit Tree application. This design has been added in Example 4 in app-circuit-tree.com and can be customized/modified with any changes desired.

Here are some of the screenshots of the top/bottom SVG renderings.

All_layers_gateway

 

 

 

 

 

 

 

 

 

 

 

 

esp32 gateway svg Top_Side

 

esp32 gateway svg Bot_layer

 

 

 

 

 

 

 

 

 

 

 

 

Fabricated Board

 

esp32_gateway2

Assembled Board

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bring-up test is underway for the board. So far initial tests show no electrical failures. We did miss on the silkscreen but that is why we need to automate more so that errors are minimized.

Design files and Arduino test code is uploaded at the Github link.

Additional read:

Thanks


 

ESP32 rapid development click board

Board objective:

Everybody likes rapid development kit. These boards should be easy to interconnect to a number of boards/shields and offer firmware to jump-start to start testing the idea.

What better to have click modules designed by Mikro-electronica which offers more than 500+ boards to connect any type of peripheral.

esp32 from express-if is another popular board that offers wifi/Bluetooth along with a number of peripherals bus to connect to a variety of devices.

Combining these two functions on the board boosts a number of different ideas that can be implemented with this board.

So introducing our new board named esp32 rapid development click board. The board has been designed using Circuit tree app autonomously except for some placement change and silkscreen updates which were done manually.

Here are some of the key features of the board:

  1. ESP32D-WROOM Module used.
  2. USB/Battery powered board
  3. On-Board UART to USB function for debugging and programming.
  4. Onboard regulators of 3.3v/5V along with control logic
  5. Switch and LED’s to provide status.

Screenshots:

Here are some of the screenshots of the top/bottom SVG renderings.

esp32_click_module_all

 

esp32_click_module_Top_Side

 

 

 

esp32_click_module_back

 

 

 

 

 

 

 

 

 

esp32 rapid development board-PCB Fabrication -Top side

 

esp32_click_board_assembled

esp32_click_board_assembled

 

 

 

 

 

 

 

 

 

 

 

Design files Arduino test code are available at Github.

There is much more planned fun along with the board which would be shared in upcoming blogs.

This board is available on sale from our website.

Designing a board gives a lot of satisfaction and fills you with motivation to keep going. The happiness and motivation that we got from the project were boosted much more as it was not only the successful board bring up but it was the Circuit Tree application that was also tested.

I hope you are also able to share our joy.

Additional read:


 

STM32 Micro-python 1.1 board

Introduction:

We are big fan of Python as it is extensively been used on most of our development tasks. One of our colleagues mentioned to create a third board using circuit tree having micro-python running on it. That sounded like a cool idea.

pyboard1.1 (Link:Sparkfun)

We wanted to build the board having feature set similar to the micro python 1.1 board. The additional constraint was to even have the interfaces and the dimensions the same.

Using Circuit Tree the design was loaded using command line entry through schematic. The Circuit Tree application autonomously completed these different activities:

  1. Interconnected the components specified in the requirement.
  2. Selected power, clock, reset components
  3. Selected discrete values needed by different components as per the electrical requirement.
  4. Generated the clean and error free schematic
  5. Accepted the board boundary which was the micro python form factor.
  6. Completed board placement. This placement had to be modified as some some components were placed far off. So human intervention was done here.
  7. Generated a two layer PCB design on it own. All the pcb routing, plane creation, Thick traces routing , length matching was autonomously. Here Human intervention was introduced to redo some traces. Human intervention was introduced to ensure that the design was correct.
  8. Gerber files were generated by the app after the silk screen was updated by engineer working on the program.

Using BOM component links the components were ordered. So yes it was minimal human intervention and feels good looking at the task circuit tree application is now able to undertake.

It is a two layer design with pictures below displaying svg of all layers, bottom and top layers.

All_layers_pyboard1.1

Bottom side pyboard1.1

Top side pyboard1.1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

And here is the PCB Fabricated using circuit tree application design:

Fabricated board

 

 

 

 

 

 

 

 

 

 

 

 

The board is now under pcb assembly. Waiting patiently to get the boards so that we can load the micro python the board.

The PCB has been in India and this is the third board from us. Lots of learnings along the way.

We dream for the day when we are able to design complex boards (6+ layers, 400+ components including BGA components) using Circuit Tree application under 3 hours of effort.

If board design is a pain point for you write back to us what you would like us to solve. 


New Developments

New features and updates added in Circuit tree:

  1. Updated requirement editor which allows generation of variety of design using variety of components and blocks.
  2. UI/UX improvements.
  3. Placement engine update. The new engine is more efficient optimiser and produces placements and board outlines similar to a engineer on the project would do.
  4. Layout creation. The engine can now generate 2/4/6 layer designs depending on the complexity or requirement defined. BGA/small pitch components are easily routed.
  5. Designed three new boards complete with assembly. These boards have been autonomously designed at circuit tree with some manual help. It has been very useful and productive exercise.

More details of these boards in upcoming posts.

Boards designed with circuit tree

Evaluation of circuit tree with a stm32f407 microcontroller board -Part2

Design Goal

Time for another test of capability. These tests help us check the hardware compiler performance to a actual built commercial board. Some of the items for us to check are:

  1. How closer are we able to design the board with respect to requirements?
  2. Is there any possibility of optimization among circuit tree outputs?
  3. What is the board cost compared to the comparison board?
  4. Circuit Tree designs would be different than the designed board. How do we verify the design?

Olimex board

This time we compare the capability of circuit tree with another commercial board in the market available from olimex. It is a great open source hardware board available at a competitive price with great support from olimex.

Let us again pick the requirement of the board from site :

  1. STM32F407ZGT6 microcontroller
  2. JTAG connector with ARM 2×10 pin layout for programming/debugging
  3. Ethernet 100Mbit
  4. UEXT connector (UEXT is a board to board connector which supports three serial communication interfaces – I2C, SPI and RS232. There is also 3.3V line and GND.)
  5. USB host
  6. USB OTG
  7. SD-card
  8. Input DC DC power supply which allows operation from 6-16VDC source
  9. Power and user LEDs
  10. Reset and user buttons
  11. 4 full 20-pin Ports with the external memory bus for add-on modules
  12. Arduino platform with unsoldered headers
  13. 4 rubber pads for the mount holes
  14. PCB: FR-4, 1.5 mm (0.062″), soldermask, silkscreen component print
  15. Dimensions: 101.6 x 86mm (4 x 3.4″)
  16. Boards costs 40USD in quantity of unit 1 as per olimex.

Requirement entry in Circuit Tree

Let us add this requirement on circuit tree requirement editor:

Step 1:

We add requirements in the tool by adding spi, i2c and other buses to a UEXT connector. Similarily for the Arduino connector the spi and uart bus signals are routed to the connectors. We additionally add the GPIO connector having close to 11 pins. Additional interfaces such as ethernet with lan8710, usb type AB port with esd protection, sd card and jtag ports are added as per the snapshots below.

Requirement_editor-1

Requirement_editor-1

 

 

 

 

 

 

 

Requirement_editor-2

Requirement_editor-2

 

Requirement_editor-3

Requirement_editor-3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Step 2:

Circuit Tree hardware compiler next finds the controller which can support these function. Circuit Tree returns close to 186 parts. We have option to select STM32F407ZGT6 or STM32F407ZET6 with several other parts. We choose STM32F407ZET6 as olimex schematic has this part designed into it.

processor_selection

processor_selection

 

 

 

 

 

 

 

 

Step3:

We next select power of 6V to 14V as required in the requirement and get the schematic design generated in a minutes time. You would notice that the BOM cost derived from Octopart comes to USD 51. The pdf, bom and eagle schematic design is available at link

schematic-final

schematic-final

 

 

 

 

 

 

 

 

 

Step4:

We select a board size of 130mm x64 mm.

placement_file

placement_file

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Step5:

Output placement file is shown below with the constraint that all components be placed on the top side of the board. The red color denotes the placement of the component on the top side of the board. We need to work more on the board by adding the constraints to the board footprints. The arduino connectors are misplaced in the picture below. Files are uploaded at link

placement_with_details

placement_with_details

 

 

 

 

 

 

 

Comparison between two designs:

  1. SDHC section visual check: Circuit tree auto creates processor symbol based on the bus sections and adds them to the connector page. All pins of the connector and the processor pins are the same for sections stated below:
micro sd check

micro sd interface check

 

 

 

 

 

 

 

 

 

  1. JTAG section visual check:
Jtag connection visual chec

Jtag connection visual check

 

 

 

 

 

 

 

  1. USB section visual check: Two usb otg ports are compared. The connector pinouts, vbus generators and esd connections can be checked in the schematic.
usb_otg_sch

usb_otg_sch

 

 

 

 

 

 

 

 

 

 

 

 

 

  1. Ethernet RMII section: Comparison of lan8710 and STM32F407ZET6 connections are done. All controllers pins are the same except for the PG11 which in case of circuit tree schematic is PB11 which is correct as per pin mux.
ethernet_schematic

lan8710 ethernet schematic

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  1. UEXT connector connections: The connections of the controller pins and the UEXT assignment is different than allocated. The connector pin definition is also different than the one desired.
UEXT_connector_connections

UEXT_connector_connections

 

 

 

 

 

 

 

 

 

 

Differences

  1. Other differences:
    1. Power, clock and reset generation is different in circuit tree. It shows that circuit tree can generates it own power supply connections based on what it calculates the extremes.
    2. Some of BOM parts selected by circuit tree are high is cost. One of the examples being integrated magnetics which cost close to usd 10. We would address this concern once we have sufficient parts in the library which would provide value range to the user.
    3. Arduino connectors are not compared as the pin assignment and gpio connections are not as per connector requirements even though the muxing from controller is correct. In the next release we would have new feature to change the connector pin outs.
    4. IFC pin connections failed as circuit tree does not generate a connection where it observes conflict of IO’s. The commercial schematic uses jumpers to isolate segments which we can also support at a later date.
    5. The placement of the design was not the same as the olimex board. We are in process of improving the constraint addition which would  help to create more custom designs.

It was a long post with visual comparison of the two boards. Write back to us at info@circuit.swapdevelopment.com with your feature requests and suggestions.

Circuit-Tree Hardware Compiler Detailed Feature List

At Circuit Tree we have number of embedded board components and features which allow you to build a custom board quickly and reliably.  Circuit Tree has 1000’s of controller/processor along with number of peripheral devices.

List of Peripheral Interfaces

Interfaces supported by the hardware compiler:

  1. DDR3/DDR3L memory library

    1. Supports 8 Bit/16 Bit memories for a bus size of 8 bit to 64 wide bit.
    2. Added VTT termination support
    3. Support for multiple memory manufacturers.
    4. Additional features select options from the hardware compiler:
      1. Memories selected based on datarate, cas latency, single/dual die option.
      2. Hardware compiler is Intelligent to route DQS and Data group connection to various memory type based on the 8 Bit/16bit memories and the bus connection needed
      3. Route the ddr3 Bus Connections to any connector to provide capability to add plug in card.
  2. Parallel Memory library:

    1. Asynchronous Nor [16 Bit] -Various memory sizes
    2. Synchronous Nor [16 Bit] -Various memory sizes
    3. Nand Flash 8 bit -Various memory sizes
    4. Async Sram 16 Bit -Various memory sizes
    5. Additional features select options from the hardware compiler:
      1. Control memory selection based on the memory density and manufacturer
      2. Bus connections can be routed to a connector to provide capability to add plug in card.
  3. Serial Memory Library:

    1. QSPI, SPI,I2c -Various memory sizes and manufacturers
    2. Additional features the hardware compiler:
      1. Select Based on memory density, manufacturer
      2. Select addresses needed for each i2c device
      3. Bus connections can be routed to a connector to provide capability to add plug in card.
  4. Ethernet Library:

    1. Wide number of transceivers supported for:
      1. Sgmii,GMII, Rgmii,RMII and MII
      2. Additional features select options from the hardware compiler:
        1. Auto selection of transceivers and option to change the transceiver to
          one of the transceivers from menu option. Auto routing for MDC/MDIO
          signals for all the transceivers.
        2. Ethernet transceivers connections are routed to the integrated magnetics.
        3. Option to change management bus address, features and functions of the
          selected transceivers.
        4. Bus connections can be routed to a connector to provide capability to add plug in card.
  5. USB Library:

    1. ULPI Transceivers
    2. USB2.0 and USB3.0 differential from processor/micro-controllers
      1. Option to select USB Host, device, OTG mode.
      2. ESD protection diodes are added by default.
      3. Power fault protection circuitry
      4. Multiple peripheral support.
    3. Additional features select options from the hardware compiler:
      1. Select USB Host, device, OTG mode (Connectors, USB power
        switch, configurations and connections are done automatically by circuit-tree).
      2. Select multiple ULPI transceivers.
      3. Bus connections can be routed to a connector to provide capability to add plug in card.
  6. Display library:

    1. Graphics LCD
    2. OLED LCD
    3. TFT LCD
    4. HDMI differential signals
    5. LVDS connection using display Bus
    6. HDMI output Using display bus
    7. DVI output using display bus
    8. Additional features select options from the hardware compiler:
      1. Option to select Component configuration
      2. Bus connections can be routed to a connector to provide capability to add plug in card.
  7. Wireless Library:

    1. WIFI modules
    2. Bluetooth module
    3. NFC module
    4. Radio 2.4Ghz module
    5. Zigbee module
    6. GPS module
    7. Additional features select options from the hardware compiler:
      1. Component configuration
  8. Sensor Library:

    1. Temperature
    2. Accelerometer
    3. Humidity
    4. Compass
    5. Pressure
    6. Gyroscope
    7. RTC
    8. Additional features select options from the hardware compiler:
      1. Component selection from various vendors
  9. UART library

    1. RS232  transceivers of various vendors
    2. Additional features select options from the hardware compiler:
      1. Option to route the signals to DB9 or a 2×5 header
      2. Option to route any custom connector.
  10. Jtag Library:

    1. ARM Jtag 2×10 header
    2. ARM Jtag 2×5 header
    3. ARM SWI 2×5 header
    4. ARM SWI 2×10 header
    5. Additional features select options from the hardware compiler:
      1. Option to route the Jtag signals to any custom connector.
  11. PCIe library:

    1. Mini PCIe slot
    2. PCie x1, x4 and x8
    3. Additional features select options from the hardware compiler:
      1. Option to route the PCIe signals to any custom connector.
  12. SATA library:

    1. Sata connector without power from the board.
    2. Additional features select options from the hardware compiler:
      1. Option to route the SATA signals to any custom connector.
  13. SD library:

    1. SDHC connector
    2. or choose Emmc Memory
    3. Additional features select options from the hardware compiler:
      1. Option to route the sd signals to any custom connector.
  14. Audio library:

    1. Audio transceivers from various vendors
    2. Additional features select options from the hardware compiler:
      1. Option to select audio transceivers
      2. Option to select part features such as number of Microphones ,speaker etc
      3. Option to route the audio signals to any custom connector.
  15. CAN library:

    1. CAN transceivers
    2. Additional features select options from the hardware compiler:
      1. Option to select CAN transceiver
      2. Option to select features for a transceiver
      3. Select DB9 or a different connector to have the CAN signals routed to be connected to another CAN device.
      4. Option to route the CAN signals to any custom connector.
  16. Camera Library:

    1. Library contains Camera PCB Module and sensor.
    2. Additional features select options from the hardware compiler:
      1. Option to select Camera part from different manufacturer
      2. Option to select features for a camera pcb module.
      3. Option to route the camera signals to any custom connector.
  17. GPIO/ADC/DAC Library:

    1. Get the number of GPIO’s, ADC’s DAC’s needed for an application. The hardware compiler would select pins from processor/micro-controller to be added to a header for connection.
  18. Button/LED Library

    1. various leds are added on the board as per function needs of the board.

There is a lot of other finer details which we support. If you have additional questions then visit faq section or feel free to write back with your questions at info@circuit.swapdevelopment.com

To start testing these features today visit our hardware compiler site.

Circuit Tree has number of followers in hackaday and in ST Microelectronics community.

Checkout the hackaday page.

Another Experiment at circuit tree

We keep enjoy experimenting. Experimenting to create new type of designs, find issues, open new exciting features, check new ways to test the circuit Tree designs. We have a lot of capability to churn and mine new embedded designs using so many controllers, peripherals , placement options. So how do we check so many designs to check if they meet circuit tree quality goals?

Experiments at Circuit Tree

Experiments at Circuit Tree (Image Link: quote fancy)

Well answer lies with scripts. We use scripts written in python for several application including this one which auto generate controllers designs with random placement files. Even though regular users have menu options to choose designs scripts do following testing autonomously:

  1. select a processor/microcontroller
  2. Randomly choose peripherals that can be connected to it to generate design. The number of peripheral selected are random.
  3. Randomly select a voltage to be applied to the circuit
  4. Randomly select applied voltage options. It can be through custom voltage adapter or through the battery select options.
  5. Randomly select board file through dxf file and does auto placement of components. Only the files where the part placement is possible the file picture is taken and displayed.
  6. Test for errors
    1. Error between circuit tree designs and eda tool export options
    2. Check if the symbols and footprints are being exported correctly on the library.
    3. Check if all the cad design can be generated without issues.

Now we invite you to be the judge of the designs created with circuit tree. Check the github directory to see our design listing and let us know if you are able to find design errors. Then we would know if the experiment helped us.

To start creating designs today log in to the hardware compiler at link