BL0032 windspeed
Moderator: Benj
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
- Contact:
BL0032 windspeed
Hi everyone
Want to be able to read pulses on one entrance.
Is there anyone here who will help
Have tried many times but without result
Med still can't read a frequency
Attachment: Do you have a code suggestion so that it becomes possible to read a sequence?
Want to be able to read pulses on one entrance.
Is there anyone here who will help
Have tried many times but without result
Med still can't read a frequency
Attachment: Do you have a code suggestion so that it becomes possible to read a sequence?
Best Regard
Monie
Monie
-
- Valued Contributor
- Posts: 1191
- Joined: Wed May 31, 2017 11:57 am
- Has thanked: 70 times
- Been thanked: 440 times
- Contact:
Re: BL0032 windspeed
Hi Monie,
You don't seem to enable your timer interrupt in the code sample...
Martin
You don't seem to enable your timer interrupt in the code sample...
Martin
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
- Contact:
Re: BL0032 windspeed
Hi mnf
OK, I look at this and return to you.
Thank you so much for your attention.
OK, I look at this and return to you.
Thank you so much for your attention.
Best Regard
Monie
Monie
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
- Contact:
Re: BL0032 windspeed
Hi mnf
Have tried the attachment below!
But can't make WindSpeed work
Attachment file:
Have tried the attachment below!
But can't make WindSpeed work
Attachment file:
Best Regard
Monie
Monie
-
- Valued Contributor
- Posts: 1191
- Joined: Wed May 31, 2017 11:57 am
- Has thanked: 70 times
- Been thanked: 440 times
- Contact:
Re: BL0032 windspeed
I did a simple frequency counter example here: viewtopic.php?f=26&t=20970&hilit=Frequency+counter that used two interrupts to count frequency... I used a rtc chip to generate the 1s interrupt rather than an inbuilt timer.
I have an anemometer here that came from a broken weather station I will can havea play with - but not too to tomorrow evening - and hopefully you'll be up and running by then
I have an anemometer here that came from a broken weather station I will can havea play with - but not too to tomorrow evening - and hopefully you'll be up and running by then
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
- Contact:
Re: BL0032 windspeed
Hi mnf
Thank you so much for your suggestion.
The codes look exciting.
I usedsPIC Programmer BL0032
User I2C 4 line Display:
And user input B0
User FG085 Function Generator.
When pulse in at 92 Hz is displayed "PulsIn: 5050".
Where I wanted to be shown 9.2 m/s
Do you see where things go wrong in the codes?
Please see attachment:
Thank you so much for your suggestion.
The codes look exciting.
I usedsPIC Programmer BL0032
User I2C 4 line Display:
And user input B0
User FG085 Function Generator.
When pulse in at 92 Hz is displayed "PulsIn: 5050".
Where I wanted to be shown 9.2 m/s
Do you see where things go wrong in the codes?
Please see attachment:
Best Regard
Monie
Monie
-
- Valued Contributor
- Posts: 1191
- Joined: Wed May 31, 2017 11:57 am
- Has thanked: 70 times
- Been thanked: 440 times
- Contact:
Re: BL0032 windspeed
Hi Monie,
This is trying to do something different? Measure the length of a received pulse?
Martin1 (medelec) posted some PIC code here viewtopic.php?f=26&t=14749&p=59273&#p59273 that may do what you need?
Martin
This is trying to do something different? Measure the length of a received pulse?
Martin1 (medelec) posted some PIC code here viewtopic.php?f=26&t=14749&p=59273&#p59273 that may do what you need?
Martin
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
- Contact:
Re: BL0032 windspeed
Hi everyone
Regarding interrupt port for BLl0032
Does anyone have a record of interrupt for Port and Pin. number.
Regarding interrupt port for BLl0032
Does anyone have a record of interrupt for Port and Pin. number.
Best Regard
Monie
Monie
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
- Contact:
Re: BL0032 windspeed
Hi everyone
I wish here to be able to press 2x keyboards simultaneously.
Keyboards type:BL0138
As an example: Press = 10 and Press = 11
Do you have a suggestion on how to write it as codes?
I wish here to be able to press 2x keyboards simultaneously.
Keyboards type:BL0138
As an example: Press = 10 and Press = 11
Do you have a suggestion on how to write it as codes?
Last edited by Monie Jacobsen on Tue Oct 01, 2019 6:55 am, edited 1 time in total.
Best Regard
Monie
Monie
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: BL0032 windspeed
Hi Moni,
https://www.matrixtsl.com/mmforums/viewtopic.php?f=28&t=20253&p=89433&#p89433
That could be a starting point for you?
What about the basic frequency counter I created for you in 2012:Monie Jacobsen wrote:HI medelec35
Pulse & frequency Meter User BL0032 - 16-Bit dsPIC ?
I have tried a lot to make your codes work with BL0032 - 16-Bit dsPIC but, with no luck!
Is it something you want to help with?
Please see attachment below;-)
Attachment:
https://www.matrixtsl.com/mmforums/viewtopic.php?f=28&t=20253&p=89433&#p89433
That could be a starting point for you?
Martin
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
- Contact:
Re: BL0032 windspeed
HI medelec35
"The basic frequency counter you created for me in 2012"
It will be very good to use in connecting a BL0032 - 16-bit dsPIC.
Just made the frequency counter work
But I do not have the opportunity to choose other ports from which I can read the Frequency.
Can only read from PB1!
Missing record for attach interrupt options, stating Time 1 to Time 9 And their respective Pin number.
Is it something you want to help inform?
"The basic frequency counter you created for me in 2012"
It will be very good to use in connecting a BL0032 - 16-bit dsPIC.
Just made the frequency counter work
But I do not have the opportunity to choose other ports from which I can read the Frequency.
Can only read from PB1!
Missing record for attach interrupt options, stating Time 1 to Time 9 And their respective Pin number.
Is it something you want to help inform?
Best Regard
Monie
Monie
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: BL0032 windspeed
Hi Monie,
you can only use different pins if the interrupt allows you to via port mapping.
you can only use different pins if the interrupt allows you to via port mapping.
Martin
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
- Contact:
Re: BL0032 windspeed
Hi medelec35
Want to use different Interrupt for BL0032 - 16-bit dsPIC.
But the Pin numbers are missing!
Therefore, I need an overview of connectivity options Is that something you can help with?
Have no experience with IOC PORT!
See attachment:
Want to use different Interrupt for BL0032 - 16-bit dsPIC.
But the Pin numbers are missing!
Therefore, I need an overview of connectivity options Is that something you can help with?
Have no experience with IOC PORT!
See attachment:
Best Regard
Monie
Monie
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: BL0032 windspeed
The timer interrupt is just for that purpose alone.
Does the INT/0 have a remap option?
Just select properties and change the selection to the required pin.
If not, then you can select INT/0 to INT/4.
If that is possible then hardware redesign?
Does the INT/0 have a remap option?
Just select properties and change the selection to the required pin.
If not, then you can select INT/0 to INT/4.
If that is possible then hardware redesign?
Martin
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: BL0032 windspeed
I have just looked at your flowchart.
You are using INT2 and it does have a remap option, so you can select RB0 to RB15 etc.
You are using INT2 and it does have a remap option, so you can select RB0 to RB15 etc.
Martin
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
- Contact:
Re: BL0032 windspeed
Hi medelec35
Now read READ FREQUENCY_BL003 signal via Port as described below.
User:
INT4 = RB8 (Port BH)
INT4 = RB7 (Port D7G)
INT4 = RF0 (Port F0)
Thank you so much for your great help
Now I can work on the project...
Now read READ FREQUENCY_BL003 signal via Port as described below.
User:
INT4 = RB8 (Port BH)
INT4 = RB7 (Port D7G)
INT4 = RF0 (Port F0)
Thank you so much for your great help
Now I can work on the project...
Best Regard
Monie
Monie
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
- Contact:
Re: BL0032 windspeed
Hi everyone
I wish here to be able to press 2x keyboards simultaneously.
Keyboards type:BL0138
As an example: Press = 10 and Press = 11
Do you have a suggestion on how to write it as codes?
See the picture below:
I wish here to be able to press 2x keyboards simultaneously.
Keyboards type:BL0138
As an example: Press = 10 and Press = 11
Do you have a suggestion on how to write it as codes?
See the picture below:
Best Regard
Monie
Monie
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: BL0032 windspeed
Hi Monie,
The design of the keypad is such that you cannot press two keys at once and know what they are.
Only one key press at a time is detected.
The design of the keypad is such that you cannot press two keys at once and know what they are.
Only one key press at a time is detected.
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
- Contact:
Re: BL0032 windspeed
Hi LeighM
Do you have another suggestion that will have the same effect of activating 2 KeyPad?
Do you have another suggestion that will have the same effect of activating 2 KeyPad?
Best Regard
Monie
Monie
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: BL0032 windspeed
Hi Monie,
I have no idea if attached will work.
Can you let me know please?
I have no idea if attached will work.
Can you let me know please?
- Attachments
-
- Multiple Keys.fcfx
- (8.57 KiB) Downloaded 183 times
Martin
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
- Contact:
Re: BL0032 windspeed
Hi medelec35
Has insert a comment in attached codes!
Cannot then use KeyPad again!
Or continue with the codes afterwards!
Please see the codes here:
Attachment file:
Has insert a comment in attached codes!
Cannot then use KeyPad again!
Or continue with the codes afterwards!
Please see the codes here:
Attachment file:
Best Regard
Monie
Monie
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: BL0032 windspeed
Not sure what you are saying, but I have modified your flowchart.
- Attachments
-
- BL0032_KeyPress.fcfx
- (59.28 KiB) Downloaded 161 times
Martin
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
- Contact:
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: BL0032 windspeed
Looking at the first loop,it has now been made redundant.
All you need is:
All you need is:
Martin
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: BL0032 windspeed
Thanks for letting me know, I was not sure without hardware to test it on.Monie Jacobsen wrote:It just works now
The flowchart is just relying on the fact that two keys are never pressed and released within a few microseconds of each other.
Martin