Introduction: IOT123 - D1M BLOCK - RFTXRX Assembly
D1M BLOCKS add tactile cases, labels, polarity guides and breakouts for the popular Wemos D1 Mini SOC/Shields/Clones. RF Transmitters/Receivers allow the ESP8266 to access existing home/industrial automation. This casing provides break-outs for 433/315mHz Receiver and/or Transmitter.
The initial motivation for creating this D1M BLOCK was I needed a RF Sniffer for another project similar to this. Rather than bread-boarding it, I thought I would eat my own dog food. This presented an interesting problem: the D1M BLOCK needed to be used for the 433mHz modules and the 315mHz modules therefore the digital pins used for the breakouts could not be hard-wired. That is why both the transmitter and the receiver pins are select-able using the male headers and the jumpers. Some of the later shields (like this button shield) also allows select-able pins.
A 4th pin (Antenna) has been broken out for the transmitter; it is floating and only provided so that 4 pins are accomodated.
This Instructable steps through the assembly of the block and then tests the RF modules using the D1M WIFI BLOCKs.
Step 1: Materials and Tools
There is now a full Bill of Materials and Sources list.
- The Wemos D1 Mini Protoboard shield and long pin female headers
- 3D printed parts.
- A set of D1M BLOCK - Install Jigs
- 2 off 4P female header
- 1 off 40P male header
- 2 off Jumper caps
- Hookup wire.
- Strong Cyanoachrylate Adhesive (preferably brush on)
- Hot glue gun and hot glue sticks
- Solder and Iron
- Tinned copper wire.
Step 2: Soldering the Header Pins (using the SOCKET JIG)
As the D1 Mini male pins will not be exposed on this D1M BLOCK, the socket jig can be used. As the excess male pins will be cut off, all the pins can be soldered in the initial position.
- Feed the header pins through bottom of the board (TX top-left on the top side).
- Feed jig over plastic header and level both surfaces.
- Turn jig and assembly over and firmly press header onto a hard flat surface.
- Press the board down firmly onto the jig.
- Solder the 4 corner pins using minimal solder (just temporary alignment of pins).
- Reheat and re position board/pins if needed (board or pins not aligned or plumb).
- Solder the rest of the pins.
Step 3: Assembling the Shield
- The excess male pins from the headers can be cut off close to the solder.
- From the 40P male header cut 2 off 5P and 2 off 4P.
- Using a breadboard as a template, position and solder the male pins to the protoboard.
- Using a breadboard as a template, position temporary 4P male pins, 4P female pins on them and solder the female pins to the protoboard.
- Trace and solder the digital lines with tinned copper wire (yellow).
- Place two black wires into GND from underside and solder on topside.
Trace and solder the GND lines on underside (black).
Place two red wires into 5V and 3V3 from underside and solder on topside.
Trace and solder the power lines on underside (red).
Step 4: Gluing the Component to the Base
Not covered in the video, but recommended: put a large dob of hot glue in the empty base before quickly inserting board and aligning - this will create compression keys on either side of the board. Please do a dry run in placing the shields in the base. If the gluing was not very accurate, you may need to do some light filing of the edge of the PCB.
- With the base casing bottom surface pointing down, place the soldered assembly plastic header through the holes in the base; the (TX pin will be on side with the central groove).
- Place the hot glue jig under the base with the plastic headers placed through its grooves.
- Sit the hot glue jig on a firm flat surface and carefully push the PCB down until the plastic headers hit the surface; this should have the pins positioned correctly.
- When using the hot glue keep it away from the header pins and at least 2mm from where the lid will be positioned.
- Apply glue to all 4 corners of the PCB ensuring contact with the base walls; allow seepage to both sides of the PCB if possible.
Step 5: Gluing the Lid to the Base
- Ensure the pins are free of glue and the top 2mm of the base is free of hot glue.
- Pre-fit the lid (dry run) making sure no print artifacts are in the way.
- Take appropriate precautions when using the Cyanoachrylate adhesive.
- Apply Cyanoachrylate to the bottom corners of the lid ensuring coverage of the adjacent ridge.
- Quickly fit the lid to the base; clamping shut the corners if possible (avoiding the lens).
- After the lid is dry manually bend each pin so it is central in the void if necessary (see video).
Step 6: Adding the Adhesive Labels
- Apply pinout label on underside of base, with RST pin on side with groove.
- Apply identifier label on flat non-grooved side, with the pins void being the top of the label.
- Press labels down firmly, with a flat tool if needed.
Step 7: Testing With the D1M WIFI BLOCK(s)
For this test you will need:
- 2 off D1M RFTXRX BLOCKS
- 2 off D1M WIFI BLOCKS
- 1 off 433mHz transmitter with pinouts of Signal, VCC, GND (3.3V tolerant)
- 1 off 433mHz receiver with pinouts of VCC, Singal, Signal, GND (5V tolerant).
I suggest getting multiple transmitters and receivers as there are occasional duds.
- In the Arduino IDE install the rf-switch library (zip attached)
- Upload the the send sketch onto a D1M WIFI BLOCK.
- Disconnect the USB cable
- Attach a D1M RFTXRX BLOCK
- Add a transmitter to the central 4P female header as shown.
- Ensure a jumper is placed on the pin identified in the enableTransmit function in the sketch (D0 or D5 or D6 or D7 or D8)
- Upload the the receive sketch onto a D1M WIFI BLOCK.
- Disconnect the USB cable
- Attach a D1M RFTXRX BLOCK
- Add a receiver to the outer 4P female header as shown.
- Ensure a jumper is placedon the pin identified in the enableReceive function in the sketch (D1 or D2 or D3 or D4)
Running the test:
- Attach the receiver assembly to a USB cable and plug in you DEV PC.
- Open the console window with the correct COM port and the sketch serial baud rate (was 9600).
- Attach the transmitter assembly to a USB cable and plug in you DEV PC (other USB port).
- You should start getting transmissions logged in your console window