Home > Blog > IV Swinger 2 – PCB (PV Cell, EMR)

IV Swinger 2 – PCB (PV Cell, EMR)

Summary of IV Swinger 2 – PCB (PV Cell, EMR)


This article details the construction of a PV Cell variant of the IV Swinger 2, an IV curve tracer using electromechanical relays. It guides users through hardware design selection, software installation (Arduino IDE and IV Swinger 2 app), PCB ordering from manufacturers like OSH Park or PCBWay, purchasing components via specific Bill of Materials links, and gathering essential tools for assembly and testing. The guide concludes with a step-by-step manual test procedure to verify the relay module's functionality before full integration.

Parts used in the IV Swinger 2 (PV Cell, EMR):

  • PCB (PV cell version)
  • Electromechanical Relay (EMR) module (2-channel, active-low trigger)
  • Arduino board
  • Female-to-male jumper wires
  • Vise
  • 3rd hand tool with magnifying glass
  • Kapton tape or Scotch tape
  • Long/needle-nosed pliers
  • Soldering iron or temp controlled solder station
  • Tip cleaner
  • Rosin core solder
  • Solder sucker or solder wick
  • Wire cutter (flush cut)
  • Wire stripper
  • Drill
  • 1/16" drill bit
  • 9/64" drill bit
  • 11/64" drill bit
  • 13/64" drill bit
  • 3/8" Forstner bit
  • Digital Multimeter (DMM)
  • Small Phillips screwdriver
  • 1.5V battery
  • Sharpie
  • Ruler
  • Water spray bottle

This Instructable is a variant of the original IV Swinger 2:

https://www.instructables.com/id/IV-Swinger-2-a-50-IV-Curve-Tracer/

If you came here from there, welcome!

Otherwise, please visit that Instructable first. You may or may not end up back here depending on which variant you have chosen..

Step 1: Understand the HW Design / Choose Variant

Please refer to Step 1 in the original Instructable:

https://www.instructables.com/id/IV-Swinger-2-a-50-IV-Curve-Tracer/

If you are back here, it means you have chosen:

PCB – PV cell version, electromechanical relay (EMR)

Attached to this step are the following:

  • PDF of the steps of this Instructable
  • PDF of the schematic of this version
  • PDF with images of the top and bottom of the PCB

Step 2: Install Software

Before spending time building the hardware, install the Arduino software and the IV Swinger 2 application on the laptop that you’ll be using.

  • Install Arduino IDE:

https://www.arduino.cc/en/Main/Software

  • Install IV Swinger 2 app:

https://github.com/csatt/IV_Swinger/releases

Make sure both of the above come up before proceeding. If necessary, upgrade the OS on your computer

Step 3: Order PCB

Currently, the PCB must be purchased from a manufacturing house that will actually fabricate it for your order. The downside of this is that you’ll probably have to buy more than you need. I have used the following two:

OSH Park:

  • https://oshpark.com
  • Made in USA
  • Cost: $25 for 3 PCBs (includes shipping)
  • Time: < 12 days to ship

PCBWay:

Amazingly, I have put in orders to PCBWay on a Monday and had the boards in my hands in California on Friday.

I have shared this PCB design on PCBWay, and you can order it directly using the following link:

https://www.pcbway.com/project/shareproject/IV_Swinger_2_cell_Rev_A_2019_01_06.html

Alternately, you can order PCBs from OSH Park (or anywhere else) by uploading the ZIP archive of the Gerber files, which are found in the GitHub repository:

IV_Swinger/PCB/IV_Swinger_2_cell/Gerber/*.zip

Soon, I hope to find someone who wants to sell individual PCBs on eBay (possibly in kits, that include all the other parts too).

Step 4: Buy Other Parts

The other necessary parts to build an IV Swinger 2 can all be purchased online from Amazon and Digi-Key.

The EMR PV cell version bill of materials (BOM) is attached to this step. It can also be downloaded from:

https://github.com/csatt/IV_Swinger/raw/master/PCB/BOM/emr_cell_BOM.pdf

The BOM has an Amazon link and a Digi-Key link at the bottom. The Amazon link is a “wish list” that can be used to populate your cart. Some of the items come in quantities larger (in some cases much larger) than needed to build a single IV Swinger 2. You may, of course, choose to find equivalents that are offered in smaller quantities. Also, many of the items are things that you may already have, so don’t necessarily just blindly order everything on the list.

The Digi-Key link is a pre-populated shopping cart. Again, you’ll want to check if you already have any of the items before ordering.

In both cases, it is possible (or probable) that certain items will go out of stock or be discontinued, so you’ll have to find suitable substitutions. Note that there are some of the Digi-Key items have *ALTERNATE* in the “Customer Reference field. These should only be ordered if the primary version of the same part is marked as “backorder”.

Also included below is the link to donate to the original Arduino developers. I donate $5 for each $10 Arduino clone that I buy. This is your choice, but I think it is the right thing to do.

Donate to Arduino.cc:

https://www.arduino.cc/en/Main/Contribute

Step 5: Gather / Buy Tools

  • Holding:
    • Vise
    • 3rd hand tool with magnifying glass
    • Tape (preferably Kapton, but Scotch ok)
    • Long/needle-nosed pliers
  • Soldering:
    • Soldering iron (preferably temp controlled solder station)
    • Tip cleaner
    • Rosin core solder
    • Solder sucker or solder wick
  • Cutting:
    • Wire cutter (flush cut)
    • Wire stripper
  • Drilling:
    • Drill
    • 1/16″ bit (pilot for 9/64″)
    • 9/64″ bit (standoffs)
    • 11/64″ bit (pilot for 13/64″)
    • 13/64″ bit (binding posts)
    • 3/8″ Forstner bit (preferred – USB cable hole)
      • Alternate: 1/8”, 3/16”, 7/32”, 1/4”, 9/32”, 5/16”, 11/32”, 3/8”, and 25/64” normal bits
  • Other:
    • Digital Multimeter (DMM)
    • Small Phillips screwdriver
    • 1.5V battery
    • Sharpie
    • Ruler
    • Water spray bottle

Step 6: Manually Test the Relay Module

https://youtu.be/f99NUkTzl6I

NOTE: the video above is for the 1-channel relay used for the PV module version. The process is basically the same for the 2-channel relay, but there are some minor differences.

This will confirm that your 2-channel relay module is the correct type (active-low trigger) and that it is functional.

  • With Arduino powered off:
    • Connect relay module GND to Arduino GND with female-to-male jumper___________
    • Connect relay module VCC to Arduino 5V with female-to-male jumper ___________
    • Connect female-to-male jumper to relay module IN1 (male end not connected) ___________
  • Connect Arduino to laptop with USB cable:
    • Arduino: green LED should be on ___________
    • Arduino: yellow LED should be blinking once per second (assuming fresh-out-of box Arduino, running the default “Blink” sketch) ___________
    • Relay module: no LEDs should be on ___________
    • Relay module (K1 screw terminal): C (middle) terminal should have continuity with NC (bottom) terminal and no continuity with NO (top) terminal ___________
  • Connect the male end of the jumper from the relay module IN1 pin to the GND socket near the blinking yellow LED on the Arduino ___________
    • Relay module: should click and IN1 LED should come on ___________
    • Relay module (K1 screw terminal): C (middle) terminal should have continuity with NO (top) terminal and no continuity with NC (bottom) terminal ___________
  • Connect the male end of the jumper from the relay module IN1 pin to the “13” socket near the blinking yellow LED on the Arduino ___________
    • Relay module: should click once per second ___________
    • Relay module: IN1 LED should blink exactly opposite from the Arduino’s yellow LED ___________

NOTE: If your relay module behaves in the opposite manner to that described in each of the above three steps, that indicates that it is the wrong type, i.e. it has an active-high trigger instead of an active-low trigger. Your relay module may have a jumper that selects active-high/low, in which case you should change the jumper and try again. Otherwise, don’t despair – there is a configuration setting in the software Preferences that will allow you to use your active-high relay.

Repeat all of the above for the IN2 input and test the continuity on the screw terminal block K2.

Source: IV Swinger 2 – PCB (PV Cell, EMR)

Quick Solutions to Questions related to IV Swinger 2:

  • Which hardware variant is described in this Instructable?
    This guide covers the PCB - PV cell version that uses an electromechanical relay (EMR).
  • Where can I order the PCB for this project?
    You can order the PCB from manufacturing houses like OSH Park or PCBWay using provided links or Gerber files.
  • What software must be installed before building the hardware?
    You must install the Arduino IDE and the IV Swinger 2 application on your laptop.
  • How do I confirm my relay module is the correct type?
    You must manually test the module to ensure it has an active-low trigger and is functional.
  • What should happen if the relay behaves oppositely during testing?
    If it behaves oppositely, check for a jumper to switch between active-high and low, or use a software configuration setting.
  • Can I find substitutes for parts listed in the Bill of Materials?
    Yes, you can find equivalents in smaller quantities or suitable substitutions if items are out of stock or discontinued.
  • Is there a link to donate to the original Arduino developers?
    Yes, the article provides a direct link to donate to Arduino.cc as a recommended option.
  • What specific drill bits are required for drilling holes?
    Required bits include 1/16", 9/64", 11/64", 13/64", and a 3/8" Forstner bit for the USB cable hole.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top