PCB Design for a LoRa IoT Sensor Node

Get Started with Altium Upverter, Sign Up Now

Upverter - PCB Design for a LoRa IoT Sensor Node

When it comes to IoT devices, most designers and engineers focus on Bluetooth, cellular, WiFi, or Zigbee for wireless communication. However, LoRa (long range) is a great option for creating a low power wireless device for use in IoT networks. Currently maintained by the LoRa alliance, the specifications are easier to work with compared to other RF devices while providing up to 6 miles of communication range on a mesh or multilevel star network.

Small LoRa IoT sensor node as part of a LoRaWAN network

A LoRa IoT sensor node on a LoRaWAN network

This sub-GHz protocol is actually quite simple to implement in a PCB compared to other protocols that operate at higher frequencies. The required components are readily available and there are plenty of open source projects you can use to get started. Many organizations and individual programmers have developed open-source code to support your LoRa IoT sensor node and the LoRaWAN backhaul architecture, which will help get your new device online quickly.

Why Use a LoRa IoT Sensor Node?

Many companies already use LoRaWAN to offer long range connectivity for IoT devices. The Things Network is an active member of the LoRa Alliance and aims to support developers in building IoT products for use in LoRaWAN solutions. In addition to The Things Network and big companies like Microsoft and Google, individual developers have made their designs and their code publicly available to support LoRa developers. LoRa operates on unlicensed bands (433 MHz, 868 MHz in Europe, and 915 MHz in the US), so you can build, run, and/or join a LoRa network without a special license.

LoRa is great for low power, long range communication, but your device will not be able to connect to the internet directly. LoRa IoT sensor nodes can be built with small footprint and connectivity to other analog or digital sensors, as long as your LoRa IoT sensor node contains the right components. You don’t need full-scale SBC-grade processing power to create a LoRa IoT sensor node, so you can create some innovative solutions at low cost.

Prototype Arduino Nano LoRa IoT sensor node for a LoRa network

LoRa Network Gateways

Although LoRa devices were intended to be used for star or multilevel star (i.e., star-of-stars) networks, you can easily construct a mesh LoRa network for IoT devices with Google’s OpenThread software. If you want a device on a LoRaWAN network to connect to the internet on the traditional star network, then you will need to build a LoRa gateway device to support your LoRa IoT sensor node. The gateway connects to the internet wirelessly or over copper and facilitates communication with other remote LoRa devices via the LoRaWAN protocol.

Note that, if you are building a single LoRa IoT sensor node or similar device to connect to an existing network, then you won’t need to build your own gateway. As an example, you could use a gateway on The Things Network, which is a popular network for LoRa devices. You can also select a different LoRa network operator from the list of LoRa Network Alliance members and build your own node, or even your own LoRa network gateway.

Component Selection for a LoRa Network

The exact components you need will depend on whether you are building a gateway or a node:

  1. Building a LoRa Network Gateway

If you’re looking to build a gateway, then your best bet is to use an inexpensive single board computer (Raspberry Pi is one popular choice). Note that you’ll need to use some extra components to ensure your gateway can connect to the LoRa network, such as a USB/Ethernet converter (for a Raspberry Pi board). You’ll also need to include an antenna that operates in your intended frequency band. A rubber ducky antenna is usually a good choice for a LoRa network gateway.

Prototype LoRa IoT sensor node for a LoRa network
LoRa network gateway on a Raspberry Pi board

If you’re a serious designer and you want to create a smaller form factor gateway, you can consider importing a Raspberry Pi, BeagleBone, or other module into your PCB design software and place the components you need to operate the gateway directly on your board.

2. Building a LoRa IoT Sensor Node

Although you can certainly take an 8-bit microcontroller board (see the Arduino example above) and add an external antenna, you can make your form factor much more compact by placing an inverted F antenna on your board. The ATMega328p 8-bit MCU is a great choice for running your sensor node as it only costs a couple dollars. One great open source example LoRa IoT sensor node project is shown below.

Custom LoRa IoT sensor node board

Custom board for a LoRa IoT sensor node. Image credit: cernohorsky on GitHub

The exact MCU you should use and the communication options you need, the number of sensors you’ll interface with, costs, and desired form factor. Note that you’ll also need to place a sub-GHz RF transceiver unit on your board. As Semtech maintains the physical layer protocol for LoRa devices, they offer a wide range of LoRa products you can use to create a custom node. The RF transceiver unit shown above is from Hope Microelectronics.

The online PCB design environment from Upverter® provides a complete PCB design solution for any application. You’ll have the PCB layout tools and extensive component library you need to take your design from start to finish and prepare for manufacturing. Upverter continuously updates the platform with new features and capabilities that are demanded by the community, and you can make your LoRa IoT sensor node accessible from anywhere with Upverter’s GitHub-style sharing features.

You can sign up for free and get access to the best browser-based PCB editor, schematic editor, and component database. Visit Upverter today to learn more.

Create Your BeagleBone Black Projects in Upverter

Get Started with Altium Upverter, Sign Up Now

Upverter Expert Create Your BeagleBone Black Projects in Upverter.jpgYou can quickly create new BeagleBone Black projects in Upverter’s online design platform

Development boards and open source hardware platforms are an excellent way to start designing a new prototype. These boards are a great option for anyone that wants to create a prototype of their new idea and eventually build it into a working product. They are also a great resource for entrepreneurs that want to build a proof of concept for their next project.

Some available options for development boards include Arduino, BeagleBone, Raspberry Pi, and the Edison platform from Intel. Although Arduino and Raspberry Pi happen to be massively popular among makers and entrepreneurs, BeagleBone Black definitely deserves some mention as it offers similar or better capabilities at a competitive price point. We’ll take a look at some of the capabilities of BeagleBone Black and the steps you’ll need to take to create a clone of a BeagleBone Black board.

BeagleBone Black vs. Arduino vs. Raspberry Pi

A quick comparison of these popular platforms is quite useful; those who may be more familiar with Arduino or Raspberry Pi may not be familiar with BeagleBone, or vice versa. These three popular open source hardware platforms have some similarities, although there are a few areas where BeagleBone stands above these other products.

Arduino Boards

Arduino is a microcontroller board and comes in several variants. Each variant is specialized for a different MCU, although you could certainly download the Arduino schematics and make your own redesigned version of an Arduino board that runs on a different microcontroller. Arduino requires a specialized IDE for programming that is its own variant of C/C++.

In terms of its hardware capabilities, it requires modest power (e.g., 6-20 V for the popular Arduino Uno, although it is recommend you stay within 7-12 V) and can run on a 9 V battery. It supports dozens digital I/O pins, including some pins with PWM output, depending on the exact variant you want to use. Note that Arduino boards can accept analog inputs and convert these signals to digital data with an internal ADC, but not all boards provide analog outputs. These boards come in 8, 16, or 32-bit variants.

Raspberry Pi

This development board is really a single-board computer that runs on Linux, giving software junkies many more options for programming the module. This module includes a much higher end microprocessor (700 MHz) with memory provided by an external SD card. This board is essentially a mini-computer that interface with a variety of hardware interfaces (HDMI for display, I2C/SPI/UART digital communication, and USB) that can connect to a network via Ethernet or wireless.

These features make the Raspberry Pi an extremely useful module for edge computing or as an IoT device that provides some serious data processing. In contrast, Arduino boards are better for less memory or processing-intense applications. The ability to support more mainstream languages allows anyone to start running open source code on one of these boards; you can easily tunnel into your Raspberry Pi over your LAN via SSH and start configuring your board.

Raspberry Pi single board computer

BeagleBone Black

BeagleBone Black is another single-board computer that supports Linux, but it has more powerful hardware capabilities than Raspberry Pi. It consumes similar power, has a similar footprint, and can communicate over standard interfaces (I2C, SPI, CAN bus, etc.). However, it includes a faster processor (1 GHz vs. 700 MHz) and GPU, supports 4 GB of onboard memory, and 10/100 Ethernet connections. If you decide to spend a few extra dollars per board, you can upgrade to the BeagleBone Blue, which includes wireless access.

BeagleBone Black and BeagleBone Blue both contain the same processing architecture, the primary difference is the wireless communication capabilities in BeagleBone Blue. This makes both boards capable for processing-intensive applications as part of sensor networks, for edge computing, a variety of automation tasks, and other applications.

Forking BeagleBone Black

Upverter is one of those unique platforms that stresses sharing and community. Many users are happy to share their designs with others as open hardware projects, allowing you to fork an existing project and build your own variant in a GitHub-style manner.

Unfortunately, the schematic for the BeagleBone Black on the project’s GitHub page is only compatible with Allegro, so it may not be usable with every PCB design program. Thankfully, the BeagleBone Black module just happens to be available in the Upverter project library as an open source project, and you can quickly create a variant of this board.

From a PCB design and signal integrity aspect, it may be better to integrate all your desired capabilities onto a single board if possible. Otherwise, you can place your external circuits on their own board and use best PCB design practices to ensure signal integrity in multiboard systems. You can probably get away with hanging components and floating circuits when working with a slower Arduino board, but these issues become more important when working with BeagleBone Black projects as these systems run at much higher speeds.

Working with a board like BeagleBone Black makes this quite easy; you can rest assured that signals on the development board itself will not be degraded, and your remaining concern should be providing a low inductance connection to your external circuits. Ben Jordan provides some great advice on this point; be sure to watch this video if you are not familiar with the finer points of signal integrity and multiboard design.

beaglebone_layoutYour newly-cloned BeagleBone Black layout

This gives you a quick way to expand its capabilities or even build your own board directly on top of the existing BeagleBone Black project. And it allows you to take your proof of concept and integrate it into a single board, rather than working with hanging components that need to be fastened to the enclosure. You can increase the board size to fit the extra components you want to add to this module and incorporate these components in the schematic and layout directly from Upverter’s component library. You can also request new parts be added to Upverter’s library with EE Concierge directly from the online editor.

With the browser-based design features in Upverter®, anyone has the ability to create BeagleBone Black projects and other custom projects from a unique browser-based design interface. The schematic design and PCB layout tools can help you take your design from start to finish and prepare for manufacturing. These standard design and production planning features are accessible from anywhere by multiple collaborators.

You can sign up for free and get access to the best browser-based PCB editor, schematic editor, and component database. Visit Upverter today to learn more.

Project Design Walkthrough: Airsoft Tracer Unit, Part 1

Get Started with Altium Upverter, Sign Up Now

Project Design Walkthrough

In my Guide to Starting a New Project, I mentioned working on some projects for a friend, and for this continuation article, I think it’s worth mentioning that we’re both Airsoft players. It’s a great way to spend a day out in the forest with some friends and get some exercise, and what better project is there for us to work on together than a tracer unit for night games. A tracer unit is a mock suppressor for a replica gun that shines UV light on a glow-in-the-dark BB as it exits the barrel. This is the perfect time to make one because there’s a large Airsoft event spanning multiple days coming up, which he is going to. I’d love to join him, but instead, I’ll be going to AltiumLive.

During the day, it’s very easy to see a white BB fly through the air toward your target, while at night, it’s more of a challenge to see what you’re hitting. Tracer units are surprisingly expensive and typically have under a single watt of LED power. For a similar price, we can build our own tracer unit and purchase about 140 watts of high power SMT LEDs. I’m a fan of the phrase “if it’s worth doing, it’s worth overdoing”, and 140 watts seems like plenty of overdoing, so that’s the plan. The challenge will be packaging this many LEDs and powering them!

Unlike many project articles you may encounter, this will be a series to take you through my full project design process as it happens. I’m writing this article as I’m planning and designing, and it will cover the project design process to the point of circuit board layout, and will be submitted before breadboard prototyping or schematic capture and PCB layout begins. This way, you will be able to see the full project design process, including changes that are driven by the schematic or PCB layout, rather than the cooking show’s typical ‘here’s one I prepared earlier’ approach. This is my first Upverter™ project. I’ve been an Altium Designer® user for over a decade, so I’m excited to see what the more modern Upverter has to offer in design experience.

If you’re new to designing your own electronics, this article will guide you through the process of an experienced engineer and maker as they tackle a project. As mentioned in the Guide to Starting a New Project, whether you are building a basic device, such as this tracer unit, or a complex project, the project design process all boils down to the same set of steps.


My specifications document is fairly simple: Turn the LEDs on when a BB enters the tracer unit, and turn the LEDs off when the BB exits the unit. 

I was planning to build this purely with logic devices, however, the number of ICs was rapidly growing and the board space/packaging was going to be an issue. Instead, I’m going to use a microcontroller to detect the BB’s passage and control the LEDs. Not to mention, as a fun added bonus of using a microcontroller, I can also use the tracer unit as a chronograph, to measure every BB’s velocity as it passes through.

To detect the BB, I’m going to use an infrared LED and detector, as the BB travels past it will break the beam telling the microcontroller to turn the lights on. The light gate will be at the exit of the tracer unit, and used to turn the lights off. I’ll also want to add some code to the firmware to automatically turn the LEDs off after a period of time if an exit event was not detected. If there is strong infrared light, such as daylight, shining into the tracer unit, it may not detect the exit event, and with such a huge power draw for the LEDs, I want them switched off as quickly as possible to conserve battery life and prevent the whole unit from overheating. There will be very little cooling for these LEDs, so I’m relying on the very short duty cycle to prevent overheating.

Part Selection

Before even looking at a schematic or a PCB layout, I need to figure out which critical components the design will utilize. For this design it will be the battery, LEDs, LED driver, microcontroller and photogate. Since this is a tracer unit, it’s going to have a lot of LEDs, which means beyond the basics of merely detecting the BB travelling through the tracer unit, the power requirements for the LEDs will be driving many decisions.


For the battery, I am going to select a Turnigy 700mAh 3 cell LiPo battery with a 60C discharge rating, as it’s the most compact battery I can find that meets my discharge requirements. I’ve been using HobbyKing for many years, and their batteries are high quality yet inexpensive, and they have absolutely no circuit protection as you’d find on batteries targeted at consumer devices, which is great for stuff like this! Don’t think of the lack of protection as a bad thing, because in the radio controlled hobby industry, the electronics which the batteries plug into provide the necessary protection, leaving the batteries able to discharge staggering amounts of power. I will need to build a low voltage detection circuit into the design to stop the LEDs from running if the battery starts to be too depleted. 

Now that the battery has been defined, I could use its dimensions to set the minimum length of the tracer unit to about 80mm. The minimum length of the tracer unit will also affect the layout of components and the amount of space available on circuit boards within the unit. Knowing the battery size is critical to being able to design the most compact unit possible, which not only is better for real world usage, but also will determine the PCB manufacturing cost.


Because I’m trying to light up a phosphorescent material, I first need to figure out the optimal wavelength of light to use. Phosphorescent materials work by absorbing a lower wavelength of light and re-emitting it as a higher wavelength. I can be fairly sure that typical Airsoft tracer BBs are using SrAl2O4, strontium aluminate, for the phosphorescent material as the cheaper ZnS probably wouldn’t get lit brightly enough to satisfy players. Wikipedia tells us that “excitation wavelengths for strontium aluminate range from 200 to 450 nm”, so the shorter UVB or UVC wavelengths are probably going to be the best options, if suitable LEDs can be found.

For the UV LEDs, I headed to Digi-Key to start filtering down the Infrared, UV, Visible Emitters category. Initially I’m looking for Active, In Stock, Ultraviolet ones that are on Cut Tape to see what options come up. Sorting by price at a quantity of 100 units, I can see there are a lot of low-power options there which just won’t give the energy density this project requires, so I’ll further filter by forward current for anything over 500mA. Now I have lots of 1A Forward DC Current (If(Max)) options, which is fantastic. The cheapest options have a 120°-130° viewing angle, which I suspect is going to be too wide, so I’ll head to Fusion360 to mock up the design to see what might work. I want the LEDs to shine on the BB for as long as possible, so perhaps a wide angle LED will work well, but if I can cram a lot of LEDS in a row, I could possibly get a higher energy density by using a tight beam. 

Mock up design for a 120 to 130 degree viewing angle LED in contact with a 6mm BBWide angle LEDs have to be placed close to the ball to achieve high energy density.

The box at the top is a 3.5mm wide LED, and the circle at the bottom is a 6mm BB. With a 120° viewing angle, I feel there will be good coverage of the LED as it comes past, but the peak energy on the LED perhaps isn’t going to be as high as it could be. To get the phosphorescent material glowing as brightly as possible in the shortest amount of time, I need to give it a lot of energy. My gut feeling is that travelling past more tightly focused LEDs will ‘charge’ the phosphorescent material better than more time in the emissions of a wide angle LED.

50degree LEDNarrow angle LEDs offer high energy density while maintaining distance from the BB.

If you look at the same drawing with a 50 degree viewing angle LED, you will notice that I can bring the viewing angle lines down to be tangent with the BB and still maintain good clearance (4.1mm) from the path the BB will travel. This should reduce turbulence in the tracer unit, allowing for a more accurate shot.

I now have a short list of possible UV LEDs, with the Everlight ELUA3535OG5-P0010U23240500-VD1M being the cheapest. It is a 405nm LED which isn’t perhaps as optimal as a 385nm or shorter wavelength, but the price is 37% lower than the same LED in a mildly shorter wavelength. I feel as though 37% more LEDs of the marginally longer wavelength is going to provide more brightness than we could get with fewer LEDs of the shorter wavelength. However, I do not have actual data to back this up. Inolux have several LED options that are just a little more expensive, but the Everlight datasheet is more comprehensive and has much clearer land pattern and pin details, which are very important to me designing the board. So we’ll go with the cheapest option, as not only are they the cheapest per unit, they are also the cheapest per watt. As this part is only available from Digi-Key, I made a quick check for UV LEDs on Mouser and European suppliers, but didn’t find a cheaper option that would suit my requirements.

LED Driver

The chosen LED’s datasheet has a nice voltage/current graph. Using the 405nm option, it looks as though 3.55v to 3.6v will give about 900mA to1000mA of forward current. This lines up very nicely with our battery, as a LiPo battery offers a nominal voltage of 3.7v per cell. However, a fully charged battery will be at 4.2v, making it clear that we’re going to need a constant current driver of some sort so as not to burn the LEDs out.

vf-vs-maHigher wavelengths allow for larger forward current for a given forward voltage.

There are two possible approaches to take here: either use an op amp on a current sense resistor to enable/disable the gate of a MOSFET to limit the peak current, or go with a full blown LED driver IC that can boost the voltage and allow more LEDs to be run in series. 

Being a lazy engineer, I’m off to Texas Instruments Web Bench tool to design up a constant current LED supply. I just input my requirements, and it came up with a design based on the TI TPS92691 multi-topology LED driver with a rail-to-rail current sense amplifier. It sure sounds fancy! Okay, I’m kidding somewhat, I wanted to use a constant current boost driver because I’m going to be doing another UV LED project for post-curing parts that have been 3D printed from resin. Knowing I’m going to be having similar LEDs and power requirements for that project allows me to design a power supply for this one, and use the same schematic for the other project as well, which makes it both easier to order parts, and reduces the total design time for both projects.

I have chosen to go with 4 ‘rails’ of LEDs inside the tracer unit, and based on a series of decisions which are now mostly irrelevant since deciding to use an LED driver, I decided to use 12 LEDs per rail. I was planning to run the LEDs directly from the battery using a MOSFET and an op amp for current limiting, which led to groups of 3 LEDs. A constant current LED driver, however, will supply a consistent brightness as the battery is discharged and is a more elegant solution. The driver will run two sets of 6 series LEDs in parallel, which requires a 21.6v, 2A supply. This ends up being about 173W for the whole unit, which is definitely overkill and a bit of scope creep, but I’m okay with that.

Web Bench takes care of pretty much everything, however, it does make some odd choices for capacitors and inductors. Given that I need this to be a relatively compact design, I used the integrated bill of materials editor to swap out parts for smaller, more efficient options. I’m not overly concerned with saving every last cent, as I will only be making a couple of these units, so a difference of a dollar or two in the BOM to get a more efficient, more compact design is worth it.

TPS92691-schTI Web Bench allows you to design power supply systems with complete ease.

My main concern with using a driver like this is that I can’t afford to have a soft startup or really any startup delay. As starting up the LED driver takes more time than simply switching the LEDs on and off, I’m going to have to put a N-Channel MOSFET on the LEDs. This is going to make the driver think the LEDs are broken or something’s gone wrong; the datasheet specifically mentions this.

The TPS92691/-Q1 supports continuous LED status check through the current monitor (IMON) output. This allows for LED short circuit or open circuit detection and protection. 

The IMON pin is an analogue output, and the driver mentions cycle by cycle protection and sensing, so I’m hoping if the load goes away, it will give me full current on the next cycle if required. I don’t normally like technical risks such as this in a design, however, I’m curious enough to try it, and the project timeline isn’t critical, so I could afford to spend time experimenting. When I get the circuit boards I’ll find out if I need to do a redesign!

softstart-simSimulated driver startup shows that LEDs reach peak current after a delay.


Next up, we’re onto the microcontroller. To keep things easy, I’m going to go with an NXP microcontroller with USB bootloading and MBED compatibility. The NXP LPC11U12FHN33/201 fits the bill nicely. It’s cheap, has enough resources for this project, and shows up as a USB mass storage device when bootloading. What more could you ask for? If the board layout gets tight, I will switch to the LPC11U35FHI33/501 at almost twice the price, but in a 5x5mm footprint rather than a 7x7mm one. I could use a microcontroller that fits in a WLCSP package (36 pins in a 2.4×2.5mm area) if I needed to go really tiny, but those are starting to reach beyond the limits of my ability to hand populate a board reliably.

Photo Switch

There are multiple ways to implement a photo switch/photogate sensor, however, due to the short duration of the dark period as the BB travels across the sensor, I need an implementation that is capable of low latency response. Because of this requirement, I’ve decided to use an infrared photodiode connected to a transimpedance amplifier, which in turn will drive an S-R latch that is connected to a microcontroller pin. I may not need the S-R latch, but I haven’t decided how I want to implement the code at this point (either as a loop or using interrupts and with or without MBED). I really need to ensure the BB’s transit across the sensor is not missed, so by using a latch I can ensure the event is caught, and held, until the microcontroller has dealt with it.

In the UK, an automatic airsoft gun is limited to 1 joule, which, with a common 0.2 gram BB gives around 340 feet per second (104 m/s). A single shot airsoft gun, such as a sniper rifle, is limited to 2.3 joules which would give a 0.2g BB a 500 feet per second (152 m/s) velocity. However, snipers typically use much heavier BBs to reduce deflection by wind and increase range, so the projectile’s velocity could be around 340-400 feet per second. At 340 feet per second, the BB will block a 3mm sensor area for about 29 microseconds, a relatively long time in the world of microcontrollers, but still possible to miss if for example the code is saving chrono data to an EEPROM.

When selecting the photodiode, it’s important to look at the spectral response graphs. Many of the available options list an infrared wavelength, but will also detect some UV and a considerable amount of visible light upon closer inspection. As the tracer unit will contain 170 watts of UV LEDs, and just a basic IR LED, light leakage from the UV LEDs could cause a missed detection on the exit sensor as could bright sunlight. The tracer unit will have 3D printed light baffles/shields around the IR gates. However, with orders of magnitude more light coming from the UV LEDs, the chance of some light getting past the baffles is quite high.

Optimizing the part selection for the infrared spectrum only, and the highest possible current when exposed to light, I chose the Everlight PD15-22B/TR8 Silicon PIN photodiode. This photodiode has a peak sensitivity wavelength of 940nm, which is important to know prior to selecting an IR LED, so it can be chosen to match this wavelength.

Heading back to the emitters category on Digi-Key, I’m now looking for an Active, In Stock, 940-950nm surface mount IR LED with a 10-20 degree viewing angle. I’m also trying to avoid gull wing and similar packages in general on this project, as they don’t handle shock and vibration as well as something directly mounted to a circuit board. When setting up the BOM for the LED driver in Web Bench, I switched from aluminium SMT capacitors to multilayer ceramic ones for the same reason. Whilst airsoft guns do not have anywhere near the same recoil as a real gun, they do have some vibration and shock as they are used. Sorting by radiant intensity, my top pick is an OSRAM SFH 4641-Z LED that should work quite nicely. It’s perhaps a little too power hungry, and 950nm rather than 940nm, but it nevertheless seems to be the best tradeoff given the options available.

Analog Devices have a nice tool to calculate the values for a transimpedance amplifier for a photodiode. It even has the properties for the photodiode I have selected in it’s database, which is nice. Using this tool, I was able to design a two stage amplifier, which has significantly lower noise than a single stage amplifier, using SOT-23-5 sized op amps to save space. The tool very much preferred auto selecting dual and quad op amps, but those were just too big. My end design with the tool uses an Analog Devices AD8615U1 for the first stage, and an AD8061U2 second stage. The resistor values will still need some tuning once I see what the actual current the photodiode generates within the device is, however, the tool does provide a very good starting point.

diodeampTwo stage amplifier designed with the help of the photodiode tool from Analog Devices.

When searching for a surface mount S-R latch, there aren’t a lot of options available. In the smallest pin pitch/package, it comes down to the Texas Instruments CD4043BPWR or the same device in a NAND configuration. That’s all Digi-Key has for me, so that’s what I will go with. Luckily, it has 4 independent latches built in, so I only need one of these real-estate hungry devices.

The High Level BOM

Now that the high level components for the design have been selected, I have the following parts:

  • 48x Everlight ELUA3535OG5-P0010U23240500-VD1M UV LEDs.
  • 4x Texas Instruments TPS92691 LED drivers.
  • 1x NXP LPC11U12FHN33/201 microcontroller.
  • 2x Everlight PD15-22B/TR8 photodiode.
  • 2x OSRAM SFH 4641-Z IR LEDs.
  • 1x Texas Instruments CD4043BPWR quad S-R latch.
  • 2x Analog Devices AD8615U1.
  • 2x Analog Devices AD8061U2.

Next Time

The process of selecting parts to meet requirements is critical to a project’s success. Even on a very simple project such as this, there are many engineering decisions to be made before even starting on a schematic. If this was a project I was taking to a client or management, I could provide them with a very broad idea of costs at this point, knowing that I’d have some miscellaneous IC’s such as low current linear voltage regulators, perhaps a clock crystal for the microcontroller, connectors for the battery and USB, as well as all the passives, and ESD and EMI filtering components. From past experience, I have a ballpark figure for how much those extras are going to cost me, and specifically for this design at the low quantity I will be producing, it’s probably going to be $5-$7 and a set of PCBs from asia will be about $30-$40 delivered. The main cost in this project is the stupid, over-the-top number of high wattage UV LEDs, but thats half the fun of maker/hobby projects!

Continue to Part 2 and Part 3 of this project series.

You can sign up for free and get access to the best browser-based PCB editor, schematic editor, and component database. Visit Upverter today to learn more.

The Design Guide for Hardware Startups: Race to the Finish (Part 5)

Get Started with Altium Upverter, Sign Up Now

Upverter Expert - The Design Guide for Hardware Startups_ Race to the Finish (Part 5)

Design-build-test cycles are at the core of any hardware or software development workflow. If you’re part of a hardware startup, then it’s time to embrace this process as reality. Testing and redesigning your prototype are only part of a product’s life-cycle, but these two pieces are vital to ensuring your new product works as desired. Now that your prototypes have arrived and have been tested, you’ll get to experience the joys of design-build-test iterations in their full glory.


You’re racing to the finish line…

Building and Testing (Again?)

If you’ve received your prototype in the mail and thoroughly tested it, then you might have compiled a laundry list of redesigns. This doesn’t mean that your journey is at an end; starting a new design iteration is all part of the development process for any hardware product. These redesigns could include changes to electrical functionality, your mechanical enclosure, or new design features that only help enhance your product.

Some redesigns might be relatively simple and may not require a new prototyping run. However, there are some design changes, such as swapping components and adding new features, that will likely require a new prototyping run. Just like you did when you started your product development journey, make sure to document all changes you’ve made to your product. This is not the time to skip any details. Once you receive a new set of prototypes, you may need to carefully identify whether any changes made to your design exacerbated existing issues, and if so, carefully revert your board to its previous version.


Once you’ve finished your redesign and are ready for new prototypes, you’ll need to go back into your design software and prepare an updated set of deliverables for your manufacturer. This includes creating new Gerbers, assembly drawings, bills of materials, panels for your board, and any other documentation your manufacturer requires. If you plan to use the same manufacturer, make sure to consult with them to see if there is any other information they require when preparing for a new prototyping run.

These design-build-test cycles are part of the reality of hardware design, but getting everything right at this phase is critical to ensuring your product will function properly once it hits the market. Documentation is critical throughout this process as it helps you revert back to a previous version of your design.

You’re Almost There!

If you’ve made it this far, then you’ve accomplished a real feat. Taking an idea off of paper and preparing it for mass manufacturing is no easy task. It requires the consideration of a huge number of business and design complexities, and you’ll encounter plenty of roadblocks along the way. Working with the right design software, development process, and manufacturing planning tools can help you overcome the myriad challenges you’ll face on the way to making your dream a reality.

Speaking of business complexities, there is your market and your message to consider. Throughout the course of your design and testing processes described in this series, you’ll need to think about how to market your product and even raise money through crowdfunding platforms. This will help you build momentum for your product and might give you a head start on sales once your product is ready for deployment. There are other outlets you can use to raise money for your new venture that don’t rely on loans or gifts from friends and family. There are investor groups and accelerators for hardware startups that can help you with funding and launching your new product.

shutterstock_188940020Crowdfunding might be the right way to fund your initial prototyping and manufacturing runs

In addition to raising money to help fund your new venture, you’ll want to think about a creative marketing strategy to build awareness around your new product. Social media campaigns and catchy videos on YouTube can go a long way towards raising awareness for any new product. Taking your new product to a trade show can be a good way to show off your product to potential buyers. At the end of the day, nothing beats going out to potential buyers and giving them an in-person demonstration.

As orders come in, you’ll need to carefully plan manufacturing runs to fill your orders. It helps to have a small amount of product in inventory to fill orders, but you’ll need to carefully plan production runs and track your volume as your business grows. As you progress, you’ll have a chance to develop a better relationship with your manufacturer, and placing orders will become fairly routine.

Upverter: The Ideal Toolset for Hardware Startups

There are plenty of obstacles to bringing a new product to market, but development, testing, and planning for production are much easier to address with the right design tools. The browser-based design software in Upverter® is uniquely created for taking a new design from start to finish. Whether you’re part of a hardware startup or a large electronics company, the fully online design interface and optional desktop application include all the standard features designers expect for product development and collaboration.

You can sign up for free and get access to the best browser-based PCB editor, schematic editor, and component database. Visit Upverter today to learn more.

The Design Guide for Hardware Startups: Prototype Testing (Part 4)

Get Started with Altium Upverter, Sign Up Now

Upverter Expert - The Design Guide for Hardware Startups_ Prototype Testing (Part 4)

In a previous article in this series, we discussed preparing for your first prototyping run and how you can cut down on lead times, as well as how to control costs with the right sourcing tools. Eventually, you’ll receive your new prototypes in the mail and you’ll need to test your boards in a real environment.

There are some important aspects of your prototype which should be tested. Your manufacturer will likely test the basic electrical connections once a board is depanelled and assembled, just to be sure that all the required electrical connections were made and that components fit into the right locations. However, they won’t test the functionality for two reasons. First, the functionality may not be known or obvious, and second, it’s just not their job. Once your board has passed basic manufacturing and assembly inspections, it will get shipped to you to check functionality.

Testing Your Prototype

Before powering up your board and running some basic electrical tests, it is important to note that your board might go haywire as soon as you turn it on. It is a good idea to hook up a multimeter between any exposed power and ground connections. If your multimeter reads 0 V between these points as soon as your board is powered up, immediately power it off. There may be a short circuit, or your power connection may not be soldered correctly. Check all important connections with a multimeter before proceeding further.

There are a number of other basic aspects of your board you should check that your manufacturer may have missed. It is also possible that you committed a design error, and your manufacturer was just following your instructions. In either case, you’ll need to identify any problems with your prototype by powering up your board and checking the following:

Board and Component Temperature

If this is your first prototype, you should check the temperature of critical components to make sure they are running at the appropriate operating temperature. Some active components (e.g., op-amp ICs) should be only somewhat warm to the touch while they are running. A component in a DIP package that is not a PLD should not burn your finger while it is running; if it does, then you may have hooked up the component incorrectly, and you should check your connections.

Active components like microcontrollers tend to run at higher temperatures when they are running at full power, and you’ll want to check the temperature of the board and the components themselves under these conditions. Manufacturers of these components normally specify that you should include a thermal pad and vias beneath the component to help dissipate heat, and this is your chance to check that these measures are providing the right level of thermal management.


No one wants this to happen to their prototype

If you included some thermal management features in your board, such as thermal lands and vias, then this test will tell you the effectiveness of these measures. Depending on the results, you may want to add some passive cooling to your components. In extreme cases, you may need to go much farther and incorporate active cooling into your device. It is also possible that you did not wire certain components correctly, or there is a short circuit somewhere in the board.

Fit to Enclosure

You’ll need to make sure that your board fits inside its enclosure in the way you envisioned. This is more than just a spot check; you’ll want to check that any electrical inputs through the enclosure have the right clearances, that power plugs or other connectors can attach to your device easily, and that the board fits snugly into its enclosure. You should always check to make sure that the board does not move or shift as you use your prototype. Your board should be mechanically secured to its enclosure.

Once the device is in its enclosure and the board is powered up, it’s a good idea to check the enclosure temperature. Placing the backside of the board is a good way to conduct heat away from a board with active components (think about how your smartphone gets warm when it has been run for awhile), but your enclosure should not have any hotspots. Unless it is absolutely critical that your board reach a specific temperature during use, you don’t need to measure the temperature. Instead, you’ll want to handle the board while it is powered up to ensure that it is not too warm to touch.

Short Circuits and Open Circuits

Once you board is inside its enclosure, it is a good idea to check for any open circuits or short circuits throughout the board. If you are using a metal enclosure, there is always the risk that you bridge power and ground if the backside of the board contacts metal. This brings up another design point: don’t place any solder points on the backside of the board if there is a chance it will come into contact with a metal enclosure.

Open circuits typically arise because a designer forgot to remove an extra connection from their board. It’s understandable, especially if you’re an entrepreneur that has been working on a new design until 2 AM every night. Any open circuits create a risk of shock when bridged. This is another case where you should probe your board with your multimeter to locate any open circuits.


We’ve all been up late bringing our ideas to life…

Compliance with Design Standards

If your board must comply with any design standards for your particular application, then this is your chance to check compliance. Your list of standards might be long, but the testing procedures will generally be specified in your standards.

Missing Components

There’s always a possibility that your manufacturer or assembler forgot to include a component, or it was not included in your bill of materials by mistake, or it was simply missing from your design. In any case, check the components on your board against your BOM and against your actual design.

Functional Testing in a Real Environment

If all the basic tests are passed, it is time to deploy your prototype in a real environment and check that it works as designed. Your goal should be to push your prototype to its limits in order to determine its reliability. This can include mechanical testing (try dropping your prototype and see if it still works!), testing in extreme cold or heat, and any other aspects you can imagine. If you did your homework and narrowly defined your design and testing requirements, then you will need to check your prototype’s functionality against all of these aspects. The results will inevitably inform any redesigns that may be required and will determine if another prototyping run is necessary.

With all the difficulties facing hardware startups, design, testing, and manufacturing should be high on the list. The browser-based design tools in Upverter® give you access to all the design features you need to take a new design from start to finish. The fully online design interface and optional desktop application include all the standard features designers expect and access to an extensive library of electronic components.

You can sign up for free and get access to the best browser-based PCB editor, schematic editor, and component database. Visit Upverter today to learn more.

The Design Guide for Hardware Startups: Build and Test (Part 3)

Get Started with Altium Upverter, Sign Up Now

Upverter Expert - The Design Guide for Hardware Startups_ Build and Test (Part 3)

It’s time to prepare for prototype manufacturing

In the first two parts of this series, we went over some of the important planning and design steps required to create your new product. By this point, you should have a design that you are ready to validate as a real prototype. Now it comes time to find a manufacturer and plan for production.

On your first prototyping run, you will likely be ordering a small number of boards, and you will need to test all of them to ensure they work as designed. This is the moment of truth, where you find out if your design choices will produce the functionality your market desires and whether your PCB will actually function as a real device. At this point, your concern should be electrical performance of the device, so you won’t need to order an enclosure unless its mechanical aspects are a core requirement for your new product.

Finding and Consulting a Manufacturer

In the old days, you would find some investors, set up your manufacturing capacity, and start turning out widgets. These days, it makes more sense to contract out your production to a specialized manufacturer. When you’re ready to produce your new design, you’ll need to contact a manufacturer and consult with them regarding their manufacturing capabilities, lead times, minimum order quantity, prices, and design documents required to begin production. Not all manufacturers will produce low volume runs, and this is an important requirement when planning to produce a prototype.

Regarding producing the volume you want, your manufacturer will generally produce a group of boards as a panel, so you’ll need to panelize your board in your design software. The standard panel size is 18 by 24 inches, but you should check with your manufacturer as they may be able to work with other panel sizes. Try to arrange your board so that you can fit as many copies as possible into a single panel.

In addition to creating panels, there are a number of other deliverables that you will need to generate for your manufacturer. This includes a bill of materials, Gerber files for your board, assembly drawings, design files, board fabrication specs, and any other information your manufacturer requires to properly tool their process to produce your board. Your bill of materials is more than just a list of parts; it should include sourcing information, reference designators for each component, and at least one possible replacement for each component in the board.

Sourcing Your Components

Another factor in manufacturing planning is component sourcing. Your components need to come from somewhere, and you should take some time to look into the supply chain to determine component availability when preparing for production. For many common components, such as simple passive components, you’ll generally find that these components are readily available, although there have been passive component shortages lately. However, very large manufacturers tend to keep some commonly-used passive components in stock, giving you some insulation against changes in the supply chain.

In the event your desired components can’t be sourced, you will need to swap them out for suitable replacements. If you checked availability of your desired components early in the design process, then you’ve got a good chance of avoiding a long lead time. Be careful as the supply chain landscape can change quickly. There’s no reason to sit around waiting to take delivery of your boards for longer than is necessary, and you can prevent long lead times by paying close attention to the supply chain.

Your manufacturer can only do so much to properly source your components

Design Review

Once you’ve found a manufacturer that is willing to produce the volume you want, and you’ve created your panels and other deliverables, you’ll need to have your design reviewed by the manufacturer. Your manufacturer will perform DFM and DFA checks in order to guarantee that your board is manufacturable. They may suggest changes that will help prevent low yield, and they may be able to quickly modify your design to meet their process requirements. In some cases, they may send your design back for modifications before beginning production.

With any luck, you won’t have to make major changes to your design, or your manufacturer can make these minor changes for you. Once your board moves into the production and assembly phase, it’s time to sit back and wait for your prototypes to arrive in the mail. In the meantime, you should plan out the tests you will need to perform with your prototypes.

Once you receive your prototypes, it’s time to test them out

Testing Your Prototypes

When you test your prototypes, you’ll need to check all electrical functionality to ensure power integrity and signal integrity. You’ll want to check for problems like ringing, signal reflections, board temperature, and any other performance aspects you can think of. It is a good idea to take your prototype and test it in its deployment environment to ensure that it can withstand operating demands. The results from these tests will determine any necessary redesigns.

Hardware startups don’t always have the biggest budgets. The browser-based design tools in Upverter® give hardware startups all the design features they need to take a design from start to finish. The online design interface includes all the standard features designers need, including an extensive library of electronic components.

You can sign up for free and get access to the best browser-based PCB editor, schematic editor, and component database. Visit Upverter today to learn more.

Crowdinvesting vs. Crowdfunding Platforms for Hardware Startups

Get Started with Altium Upverter, Sign Up Now

Upverter Expert Crowdinvesting vs. Crowdfunding Platforms for Hardware Startups

Which crowdfunding platform should you use to build your hardware startup? The answer is not so simple…

Do a quick search for “crowdfunding platforms” on your favorite search engine, and you’ll find plenty of results with disparate requirements, terms of use, pricing structures, and target audiences. If you’re part of a hardware startup and you’ve got a great idea, a working prototype, or a finished product that you’re ready to take to market, how do you choose which platform to work with?

In this post, we’re not going to sit here and compare different crowdfunding platforms for hardware startups; there are simply too many of them to make an accurate comparison. Instead, there are some important regulatory issues you need to consider when determining how you want to fund the next step of your new venture. As always, don’t take what is written in this post as financial or legal advice . Always consult an attorney if you have questions about the legality of any crowdfunding campaign.

Crowdinvesting vs. Crowdfunding Platforms

Raising money from the crowd to fund your venture is an excellent way to start taking your idea and bringing it to your target market. A large number of people each contributing a small amount of money can add up to a large funding round for your company. There are two possible routes you can take as you consider building your crowdfunding campaign.

Everyone is probably familiar with a traditional crowdfunding campaign. This resembles a Salvation Army donation campaign, except you intend to deliver a real product to market, and possibly even to those who provided funding. The goal is to find people who connect with the project emotionally and ask them to give a small amount of money to support it. The crowdfunding platform you use to support your fundraising efforts will charge a commission for any money you raise.

The other option is crowdinvesting. Although crowdfunding and crowdinvesting may sound like interchangeable terms, they absolutely are not the same thing. Crowdinvesting could reasonably be called “equity crowdfunding,” meaning those who contribute money to the project are expecting to see a return on their investment. In other words, they are buying equity in your company.

This brings up an important issue of risk. Hardware startups that want to raise money through crowdinvesting platforms need to provide some assurance that they can create value (i.e., sustained return on investment) for their investors. This means the company needs to be closer to having a working product they can release to market, or the company should be at the point where it is ready to scale.


Crowdinvesting is better for companies that are ready to scale

In contrast, companies that seek contributions through crowdfunding platforms tend to carry much greater risk. Contributors must understand that there is no guarantee that there will ever be a working product for sale on the market, and contributors do not own any equity. This can be good for a hardware startup, as they still have a chance to raise significant funds without diluting their equity in the company.

The implication of the above differences is that the two types of platforms attract different contributors. This makes crowdfunding and crowdinvesting platforms ideal for hardware startups in different stages and with different levels of risk. The requirements to participate on a crowdinvesting platform tend to be more stringent than on a crowdfunding platform, as we will discuss below.

Crowdinvesting Regulations

Once you start looking at the landscape of crowdinvesting and crowdfunding platforms, you’ll realize some important differences. First and foremost is the issue of obligations. Anyone that seeks contributions on a typical crowdfunding platform is under no legal obligation to provide a return on investment, or even a working product, to anyone that contributes money. With crowdinvesting, contributors are purchasing equity, meaning they are entitled to dividends in the future, or they are entitled to a portion of proceeds from the sale of any company assets should the company be liquidated.

There is also the issue of investor classes, which limits who is allowed to invest in any company advertised on a crowdinvesting platform. In the US, the Securities and Exchange Commission (SEC) defines two classes of investors: “accredited” (a.k.a., wealthy and financially savvy) and “non-accredited” (a.k.a., not wealthy). Some crowdinvesting platforms only allow participation from accredited investors, while others allow non-accredited investors to participate.

If you are part of a US hardware startup and you want to solicit investment from non-accredited US investors, then you will need to sell equity securities under Regulation CF or claim an exemption under Regulation A. If you want to solicit investment only from accredited US investors, then you need to file a securities registration exemption under Regulation D. If you want international investors to participate, then you also need to file an exemption under Regulation S. Regulation D and S exemptions are easy to file because they carry softer regulatory requirements.

Other countries will have similar legal requirements regarding investor classification and citizenship. You’ll need to weigh the potential options carefully before deciding how you will raise funding. You should also do your homework and verify that the platform you want to use is legally authorized to run these types of funding campaigns. Although I have never heard of a scammy or illegal crowdinvesting/crowdfunding platform, you should still take the time to investigate unknown platforms before you create a crowdinvesting campaign for your hardware startup.


Don’t forget about your regulatory environment if you’re running a crowdinvesting campaign

Speaking to Different Audiences

If you’re still at the breadboard stage and you’re looking to produce a working functional prototype, and you have no patent or other legal protections for your work, then your company is a very risky investment. This means crowdfunding is probably the best way to raise cash for your venture. People that contribute to projects on traditional crowdfunding platforms tend to do so altruistically, because they want an opportunity to buy the product later, or because they connect with the product emotionally.

People that contribute money on crowdinvesting platforms are not necessarily more or less intelligent than contributors on crowdfunding platforms. However, the legal requirements that must be met for some crowdinvesting platforms (e.g., certifying investor status or citizenship requirements), both for companies and investors, forces companies to raise themselves to higher standards. The typical social media and blogging marketing strategy for a crowdfunding campaign is not applicable to a crowdinvesting campaign, and it may even be illegal, depending on where you live and where your company is incorporated.

Equity investors in new technology are driven by the potential for return on their investment, and you will need to present a coherent strategy that will generate that return. You’ll need to do your research on the market, come up with a realistic business plan, project expenses, and develop a viable marketing strategy for your product. If you do this correctly, then you have a higher chance of convincing a savvy investor to believe in your company and your vision.

No matter which crowdinvesting or crowdfunding strategy you use to raise money for your hardware startup, you’ll need the right design software to develop your product and take your design from start to finish. The browser-based PCB design platform from Upverter® gives hardware startups the design features they need to create a fully functional product. Upverter’s online design platform includes standard features any designer expects to find in their electronics design software.

You can sign up for free and get access to the best browser-based PCB editor, schematic editor, and component database. Visit Upverter today to learn more.