SoundsXP Message Boards - Indie, Indiepop, Nu-Folk and Alt-Country Forums

SoundsXP's very own gathering spot for the intelligent, irreverent, witty and daft.
It is currently Tue Dec 11, 2018 7:23 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: pulse generator
PostPosted: Mon Dec 10, 2018 12:20 pm 
Offline
Vimto supping slipper merchant

Joined: Mon Dec 10, 2018 9:11 am
Posts: 1
I am fresher to whole game of Arduino! I just got my eleven boards and trying a scheme on it.
I want to replicate few field instruments. To start we have a valve and a meter which generates two pulses based on the run in the pipe. Two pulses have 90d difference to notice direction of flow.Valve is a digital one and has two inputs which can make 3 diverse flows demand stage 4th state is not used. They are Opening, Closing or Hold this is just usual way a digital valve works I added for clarification. That means I require changing the regularity of pulses based on the inputs. Maximum freq ideally would be 1 kHz but if it spins out to be too much. Which with some compromises half of that would be okay too.

Now to make pulse train I am using Sin() function which is normal way of making it and it works fine in C# on my PC. But here appear it is a bit too much to procedure in each cycle. Below is easy version of what I have tried. I had criticism inputs in as well but no luck so took them out. I don't obtain a regular result for below program.I also have used delay() function to do the similar but it puts all functions on grasp so is not a good thing if we have little different things going on at the same time.

So my questions are:
1- Is there anybody else here has used similar thing and have got better results?
2- What is the limit freq. we can expect from Eleven ? Means any other boards that might be considerably better?
3- How long it gets to loop() function to re-start yet again ? I know it will be depending on how large is that but any normal figures with normal assumptions would be obliging.
4- Any enhanced ways you can suggest doing this?

_________________
custom essay writing service


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group