Combine a Yocto-PWM-Rx with a YoctoHub-Ethernet to get an autonomous appliance with built-in network connectivity:
The Yocto-PWM-Rx is a 2 channels PWM input. Each channel can report frequency, duty cycle, and pulse length. It works from 0.05Hz to 250Khz and accepts any -30..+30V signal as long as it crosses the 0.7V threshold.
Each channel also features a pulse counter linked to a time counter. This allows to integrate over time the output of sensors such as flow-meters. The pulse counter works from 0 to 250kHz.
View product page
The YoctoHub-Ethernet is a Fast-Ethernet module that can host three Yoctopuce modules to access them remotely. It can be powered either by a USB Micro-B cable, or directly from the Ethernet cable (PoE compatible with 802.3af standard).
Three Yoctopuce modules can be connected directly, one of which can be fixed directly on the YoctoHub-Ethernet and connected using a Board2Board-127 connector. More devices can be connected thanks to the YoctoHub-Shield extension. The YoctoHub-Ethernet can power Yoctopuce devices up to 2A.
I'd like to change the frequency Hz value to CPS (Counts per Second). I'd also like change the reported edge count to a singular event per pulse (1/2 value). How do I do this ?
Is there a way of simple doing this without digging to far into the APIs?
@cjw: The unit is hard-coded into the device and cannot be modified. The events count is done in hardware, and this hardware cannot tell the difference between up and down transitions, that's why the device reports edges count, not pulses count.
I previewed the new firmware that you released last week Oct.4/5 and it works well overall.
Excellent functionality when measuring above ambient background. My radium check source that was measured with a Ludlum 2221 scaler/ratemeter with a LND7317 shows 12,600 - 14,000CPM. averaging this out over a 10 minute time window I get the same ~12,940CPM - 13,000CPM that the Ludlum scaler shows. LND7313 CPM- uSv/hr is 3450:10.
The only thing that I see that could be fixed is that the firmware now ignores low counts and generally starts counting around 0.5 - 1CPS...not the 0.05CPS (3CPM) which was what the Hz measurement setting was able to see.. I am guessing that there must be a sampling rate adjustment that I need to play with. I should be able to adjust the sampling time to 1000ms for each sample on CPS.. CPM also shows the same blindness to lower counts.
Just got the micro connectors to add an extra connection to the board and was adjusting the API in the window while on a PC. I changed the setting to display the pulse length and the PMW-Rx disconnected and refused to reconnect. It will not show up anymore as a device in the newest edition of Virtual-Hub. What I do I get is the Virtual hub settings API. I tried searching for the device in the search bar underneath in the Virtual hub and a message stating that it is in a reflash state, I attempted reflashing the board but I get an error doing so and a message stating that the reflash failed.
I was just about to integrate this into my Bicron surveyor MS.
So much for that idea.
Confused as to why the newest Virtual-hub release would seemingly brick the board like this.
Just plug the device while keeping the button pressed, and you should be able to flash it again.
I have just installed the PMW-Rx RevB into my bicron surveyor MS.
I have currently reflashed the board with older firmware due to the higher accuracy of the CPM measurements.
In doing so I lose out on the ability to see low CPS, and CPM.
The newer firmware has the ability to see lower frequency, but if we were able to bring this ability to the CPS measurement and then remove the rounding (averaging) on the CPM, I think the project would be complete.
I'll test out any firmware you can do and then fire off a video showcasing the finished project!
Just about there! :)
@cjw Indeed, the CPS/CPM measure returns the effective number of counts measured, and not an interpolation based on the latest observation. If the goal is simply to use the same Hz value but display a different unit, I though you could do that in software and did not need a change in the firmware...
The newest firmware release (custom) now solves the problems of rounding and low cps/cpm cutoff.
Everything is working how it should!
Thank you Marc and others for the help!!