Amplify a Picaxe PWM signal without distorting data
Hello,
This question is a little off-topic. It's regarding the Meterbus (M-Bus) protocol. I have a couple of alarm sounders that use this protocol to communicate and be controlled by a master (usually a compatible control panel). What I'm trying to do is capture the communications between the control panel and a sounder (got this) so I can get a picaxe to speak to the sounders instead. The challenge is matching the physical connections and the software so a Picaxe 40X2 can mimic some very simple tasks.
I've been told that this is definitely possible as the panel and devices all use pic16 micro controllers and that an oscilloscope can be used to capture the waveform of specific commands alongside the timings of each square wave. I have managed to "sniff" some of the commands that the panel uses to trigger these sounders. I just need to get my cheapo sainsmart oscilloscope to save the waveform to an sd card.
My question is, how can I get my picaxe to output a specified square wave signal but then amplify the voltage between 17-24v? The highest peak is 23.6v and the trough of the waveform is 17.3? The pwm voltage is far too low and I'm not sure how I can amplify this without distorting the actual data output.
As always, I look forward to hearing from you all!
Side question- If anyone knows how I can get my DSO201 oscilloscope to save to a fat16 sd card let me know! I can then provide some captured waveforms.
Hello,
This question is a little off-topic. It's regarding the Meterbus (M-Bus) protocol. I have a couple of alarm sounders that use this protocol to communicate and be controlled by a master (usually a compatible control panel). What I'm trying to do is capture the communications between the control panel and a sounder (got this) so I can get a picaxe to speak to the sounders instead. The challenge is matching the physical connections and the software so a Picaxe 40X2 can mimic some very simple tasks.
I've been told that this is definitely possible as the panel and devices all use pic16 micro controllers and that an oscilloscope can be used to capture the waveform of specific commands alongside the timings of each square wave. I have managed to "sniff" some of the commands that the panel uses to trigger these sounders. I just need to get my cheapo sainsmart oscilloscope to save the waveform to an sd card.
My question is, how can I get my picaxe to output a specified square wave signal but then amplify the voltage between 17-24v? The highest peak is 23.6v and the trough of the waveform is 17.3? The pwm voltage is far too low and I'm not sure how I can amplify this without distorting the actual data output.
As always, I look forward to hearing from you all!
Side question- If anyone knows how I can get my DSO201 oscilloscope to save to a fat16 sd card let me know! I can then provide some captured waveforms.
Last edited: