Hello! I need make project with 2 encoders, so here the required two counters. If want to organize the pulse counting, here is Necessary to use two timers with the Ability to activate the external oscillator input? FOr PIC16F886 is Possible to organize two counters using timers? How to do it? How to do it? maybe I need another controller? thanks ....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you, kent!
encoders will be used as the counters, directional control is not required. Perhaps for counter mode Could Be used capture modules ccp1 and ccp2? The 18f2331/4331 devices have input for only 1 encoder.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Forget that only one QEI module in the 18f4331 series, oops!
More information is needed for people to help, please define the task at hand. Like for example, I want to use rotary encoders (model no. and datasheet) to measure speed, on two dc motors, in the forward direction only? Or?
There are rotary encoder counter examples in the GreatCowBasic/Demo folder of GCB@SYN installation, that may fit the bill?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thank you, kent!
the counter everything is in order. I Created counters using timer1 and timer0. but I need to read the timer value and print on the LCD. How properly Organized timer reading?
This code does not work:
main:
timer1 (counter_1)
locate 0,1
print counter_1
timer2(counter_2)
locate 1,1
print counter_2
goto main
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I finally finished the project. Encoders are used as pulse counters, Which has detect pulses for two chains. The system will have to be check of chain breakage. If one chain is broken, then Pulse counter detect the difference . If both chains is broken, then detect the Absence of a pulses. I use the timer_0 and timer_1 as counters. timer_2 is used for working time indication. This code is a good example. Also I published circuit diagramm. If anyone is interested,you can ask questions about this project, I will answer. Thanks kent!
Thanks Kent! But my project 1.5 years ago - Na HID lamp dimmer is also interesting. Na HID lamp dimmer is made in 20 copies and has been working for 1.5 years! !!! Circuit diagramm and programmcode then published here. In the project using interrupt for thyristor firing angle zero cross detection. this project was also deserved the prize Virtual Great Cow BASIC Solution of the Month :) as Anobium promise for this project....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello! I need make project with 2 encoders, so here the required two counters. If want to organize the pulse counting, here is Necessary to use two timers with the Ability to activate the external oscillator input? FOr PIC16F886 is Possible to organize two counters using timers? How to do it? How to do it? maybe I need another controller? thanks ....
If quadrature encoder?, for counting, there was discussion here https://sourceforge.net/p/gcbasic/discussion/629990/thread/0dc31884/#6e4d
The 18f2331/4331 devices have a hardware QEI module for counting or velocity measurement.
Thank you, kent!
encoders will be used as the counters, directional control is not required. Perhaps for counter mode Could Be used capture modules ccp1 and ccp2? The 18f2331/4331 devices have input for only 1 encoder.
ok, I have created two counters using timer1 and timer2. How do I read the counter values?
This code does not work:
main:
timer1 (counter_1)
locate 0,1
print counter_1
timer2(counter_2)
locate 1,1
print counter_2
goto main
Forget that only one QEI module in the 18f4331 series, oops!
More information is needed for people to help, please define the task at hand. Like for example, I want to use rotary encoders (model no. and datasheet) to measure speed, on two dc motors, in the forward direction only? Or?
There are rotary encoder counter examples in the GreatCowBasic/Demo folder of GCB@SYN installation, that may fit the bill?
thank you, kent!
the counter everything is in order. I Created counters using timer1 and timer0. but I need to read the timer value and print on the LCD. How properly Organized timer reading?
This code does not work:
main:
timer1 (counter_1)
locate 0,1
print counter_1
timer2(counter_2)
locate 1,1
print counter_2
goto main
dim TimerValue1 as word
TimerValue0 = Timer0
TimerValue1 = Timer1
thank you kent!
I finally finished the project. Encoders are used as pulse counters, Which has detect pulses for two chains. The system will have to be check of chain breakage. If one chain is broken, then Pulse counter detect the difference . If both chains is broken, then detect the Absence of a pulses. I use the timer_0 and timer_1 as counters. timer_2 is used for working time indication. This code is a good example. Also I published circuit diagramm. If anyone is interested,you can ask questions about this project, I will answer. Thanks kent!
my circuit diagramm was wrong. this is correct
Very well done! The schemetic is a really nice touch. Haven't soaked in everything from the code yet :).
The encoders are somehow physically coupled to the chain idler gear shafts? How long is the conveyor?
Conveyor Chain is approximately 8m long. Encoders must be independently connected to the chain via a special gear.
Impressive. Got a video?
I award you the Virtual Great Cow BASIC Solution of the Month - because, this sounds so impressive!
Thank you Anobium!
What video? All conveyor chains, or only Watchdog?
Watchdog video I can to film tomorrow!
I need to prepare for the filming itself, it is necessary to prepare a text, my English is bad :( :(
I published the video, you can click on the link. file too big,file too big, I can not add it as an attachment here.Sorry for my bad English ...
https://www.facebook.com/Grain-dryers-chains-watchdog-1876767435932161/publishing_tools/?section=VIDEOS&source=videos_hub&refSource=videos_hub
Video in Youtube:
https://youtu.be/zJEjhuT9adM
Thanks for the YouTube video. You need a joystick with all those menus, haha. Very nice project.
Thanks Kent! But my project 1.5 years ago - Na HID lamp dimmer is also interesting. Na HID lamp dimmer is made in 20 copies and has been working for 1.5 years! !!! Circuit diagramm and programmcode then published here. In the project using interrupt for thyristor firing angle zero cross detection. this project was also deserved the prize Virtual Great Cow BASIC Solution of the Month :) as Anobium promise for this project....