- Added information about multiple-collector and multiple-emitter BJTs.
- Information added on using low-pass RC filters for making a VDAC from a PWM source.
- Added information about the 10-bit I2C addressing scheme.
- New How To Calculate Track Current page under the PCB Design section of the website, with information, equations, and more info on how to calculate the maximum current a track (a.k.a. trace) on a PCB can take.
- New NTC Thermistor Temperature Sensing page with information on PTC and NTC thermistors, including how to connect them up to a microcontroller for temperature measurements.
- New MicroBlaze page under Programming->Microcontrollers.
- New Z-Wave page under Electronics->Communication Protocols.
- New information about the common-collector BJT amplifier.
including simulation results…
- Information added about making constant-current LED drivers using BJTs.
- New PCIe Hardware Design Guide sub-page of the PCIe page.
- Moved the IGBT and MOSFET pages so they are child pages of the Transistors. page.
- Added new Bipolar Junction Transistors (BJTs) page as a child page of Transistors.
- New Smart Pointers page added under Programming->Languages->C++.
- New design guide for the Xilinx 7 Series FPGAs.
The motion sensor and alarm is now working! This would of had to been the easiest part of the circuits to get working. Everything just worked, first time (so did the software, and big part due to the PSoC’s easy to use drag’n’drop hardware blocks and configurations tools.
I found this cool little motion sensor, the MS24 on Element14 for less than NZ$10. It’s heaps better than most tilt sensors since it is sensitive to motion in all orientations, unlike tilt sensors which tend to only change state at a specific angle from the horizontal.
The sensor is normally closed, but when a small amount of motion disturbs it, it momentarily goes into the open state. All you need is a resistor and capacitor to interface this into a microcontrollers interrupt pin. The combination of the resistor and capacitor control the sensitivity.
I made a simple BJT full-bridge to control a speaker (or peizo) at 12V from the microcontrollers PWM outputs (the PSoC allows you to configure one PWM module to have two outputs, each the inverse of the other, all in the GUI!).
For the prototype, the motion sensor triggers an interrupt on the micro, which then enables the PWM, changing the frequency every 500ms to create an alarm sound.
Here’s a little video showing how it works. Note that I had the motion sensor on maximum sensitivity (aka no capacitor), hence how a little table vibration sets it off, which is quite impressive!