If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
PWM FREQUENCY CALCULATOR
4 posts
• Page 1 of 1
PWM FREQUENCY CALCULATOR
I HAVE TRIED TO CALCULATE FREQUENCY OF FLOW SENSOR PWM OUTPUT BUT RESULTS DOESNT MATCH WITH REAL VALUE. I HAVE USED DIGITAL INPUT OF PHIDGETS 8/8/8 INTERFACE KIT. FLOW SENSOR FREQUENCY CHANGES 15 TO 225 HZ, I THOUGHT I COULD GET AT LEAST UPTO 180HZ BUT MAXIMUM I CAN READ IS 43 SAMPLE PER SECOND. COULD YOU HELP ME ABOUT THIS.
THANKS
THANKS
- pars11
- Posts: 6
- Joined: Thu Oct 17, 2013 2:38 pm
Re: PWM FREQUENCY CALCULATOR
THIS IS THE SCHEMATIC
- Attachments
-
- PWM FREQUENCY CALCULATOR11.png (109.64 KiB) Viewed 8608 times
- pars11
- Posts: 6
- Joined: Thu Oct 17, 2013 2:38 pm
Re: PWM FREQUENCY CALCULATOR
Post fsm schematic (part that addreses the error) instead of blurry picture of it.
Few things to pay attention to are:
- connection order = trigger order (these small markers at the beginnings and ends count the order) = order of operations (triggers work in hierarchy).
- amount of triggers in crucial points (use trigger counter). While values don't have to change, triggers may reintroduce them again to prims and modules.
Few things to pay attention to are:
- connection order = trigger order (these small markers at the beginnings and ends count the order) = order of operations (triggers work in hierarchy).
- amount of triggers in crucial points (use trigger counter). While values don't have to change, triggers may reintroduce them again to prims and modules.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Feel free to donate. Thank you for your contribution.
- tester
- Posts: 1786
- Joined: Wed Jan 18, 2012 10:52 pm
- Location: Poland, internet
Re: PWM FREQUENCY CALCULATOR
Hi Pars, welcome to the forum.
Unfortunately, this one may be tricky to fix.
The 'events' that transfer data from one 'green' primitive to the next are rather limited in speed. 43 sample/sec is getting pretty close to the upper limit (43 samples = 86 events on/off) - the events probably won't get missed out, but when they are too fast you get an effect a bit like YouTube "buffering", where the events get slowed down - and this will make the counting get less and less accurate as your PWM gets faster.
Faster event can be handled by the Ruby parts of FS, but, as the Phidgets interfaces ONLY send their output from "green" connectors it may not be possible to read the data as quickly as you need to - I've never used any of the hardware interfaces, so I couldn't say for sure.
PS) CAPS-LOCK is over at the left hand side of your keyboard just above the SHIFT key!
Unfortunately, this one may be tricky to fix.
The 'events' that transfer data from one 'green' primitive to the next are rather limited in speed. 43 sample/sec is getting pretty close to the upper limit (43 samples = 86 events on/off) - the events probably won't get missed out, but when they are too fast you get an effect a bit like YouTube "buffering", where the events get slowed down - and this will make the counting get less and less accurate as your PWM gets faster.
Faster event can be handled by the Ruby parts of FS, but, as the Phidgets interfaces ONLY send their output from "green" connectors it may not be possible to read the data as quickly as you need to - I've never used any of the hardware interfaces, so I couldn't say for sure.
PS) CAPS-LOCK is over at the left hand side of your keyboard just above the SHIFT key!
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
Don't stagnate, mutate to create!
-
trogluddite - Posts: 1730
- Joined: Fri Oct 22, 2010 12:46 am
- Location: Yorkshire, UK
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 75 guests