Introduction: IOT123 - ASSIMILATE SENSOR: MAX9812
Microphone Amplifier Sound MIC 3.3V / 5V Fixed Gain 20dB.
This build is based on the I2C MAX9812 BRICK.
If you need adjustable gain, I recommend swapping this sensor out for the MAX4466.
ASSIMILATE SENSORS are environment sensors that have an added hardware and software abstraction layer, making it possible for completely new types to be added to a ASSIMILATE SENSOR HUB and the readings be pumped to a MQTT server without added coding.
This ASSIMILATE SENSOR dumps 3 properties:
- audMin (0-1023) - lowest value inside the 50ms (20Hz) sample window
- audMax (0-1023) - highest value inside the 50ms (20Hz) sample window
- audDiff (0-50) - a value derived from the difference of aMin and aMax
Step 1: Materials and Tools
This is the I2C MAX9812 BRICKBill of Material and Sourcing list.
- 3D Printed parts (3)
- CJMCU-9812 sensor (1)
- ATTINY85 20PU (1)
- 1" Double sided protoboard (1)
- Male Header 90º (3P, 3P)
- Male Header (2P, 2P)
- Jumper Shunt (1)
- Hookup wire (~7)
- Solder and Iron (1)
- Strong Cyanoachrylate Adhesive (1)
- 4G x 20mm self tapping screw (1)
- Hot Glue Gun (1)
- Craft Knife (1)
Step 2: Assembly
Follow the build instructions on IOT123 - I2C MAX9812 BRICK. Leave the CJMCU-9812 sensor detached from the circuit.
- Remove the 3P male header from the CJMCU-9812.
- On the rear of the CJMCU-9812, insert a yellow wire into "OUT" and solder.
- On the rear of the CJMCU-9812, insert a black wire into "GND" and solder.
- On the rear of the CJMCU-9812, insert a red wire into "VCC" and solder.
- Insert the 3D printed bracket to the CJMCU-9812 board from the top, bending the mic to the side if needed.
- Add a thin layer (~0.6mm) of hot glue to the extremities of the bracket. Let it cool.
- Trim solid glue with craft knife until snug fit in 3D printed lid.Insert the CJMCU-9812 and bracket into the 3D printed lid, bending slightly so that it falls in behind the BRICK in the base when assembled.
- On the rear of the BRICK, insert the yellow wire into YELLOW1 and solder.
- On the rear of the BRICK, insert the black wire into BLACK1 and solder.
- On the rear of the BRICK, insert the red wire into RED1 and solder.
- Bend the Jumper pins on the BRICK so that they clear the base when inserted.
- Insert the BRICK into the 3D Printed base grooves, with the 90 pins lining up with the voids.
- Turn over and press top of brick onto hard surface. If the top of the BRICK and the base are not aligned, remove the BRICK and clean up any filament that may be stopping the alignment and retry.
- When level, fasten the screw into the lower hole attaching the BRICK to the base.
- Tuck the wires into the base on the side of the solder to the BRICK.
- Put a dob of Cyanoachrylate on the lower tabs of the lid.
- Assemble the lid with the base aligning the tabs on the lid with the holes on the base.
Other than being a slight key for the bond the holes are used to gently press a thin tool in if needing to break the bond for maintenance.
Step 3: Testing
The testing (at this stage) can be the same as the underlying BRICK.
Just connect the jumper wires to the same pins on the underside of the ASSIMILATE SENSOR.
Step 4: Next Steps
There is enough code and circuit description for you to start your own ASSIMILATE SENSOR NETWORK.
Or you can check back here for more sensors and a MQTT Hub in the coming weeks.
Check out these related builds.