Hello folks.. has Ben Rowlandnhad a chance to repair the MCP41XXX component yet for FLOCODE 8 and FLOWCODE 9.??
Also I have a question on the STEPPER motor components ..?? both NEMA and GENERIC .. i wish to know ..if others have found them not to work.?? - and also maybe.. How.?? does one use these two.?? cause I have tried unsuccessfully to get them to work.. (a driver board is needed - which I have..!!).. but not can make either type to work.. either NEMA or GENERIC...
Also - I have a QUAD encoder.. that I am trying to get to work.. BUT cannot get it to work.. at all.. even with both A & B wires.. (only can get A to work with B0 (INT - pin on processor) as an interrupt call.).
Can anyone help here.?? or are the components faulty both in FLOWCODE 8 and FLOWCODE 9.??
thanks folks. I await any help / comments..??
MCP41XXX and possibly others.??
-
- Posts: 11
- http://meble-kuchenne.info.pl
- Joined: Thu Nov 24, 2022 11:55 pm
- Been thanked: 1 time
-
- Valued Contributor
- Posts: 1046
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 198 times
- Been thanked: 220 times
Re: MCP41XXX and possibly others.??
Hi Lambra
About the stepper.
Which driver board do you have?
There are different versions. Does your board have a step and direction pin?
regards
Stefan
About the stepper.
Which driver board do you have?
There are different versions. Does your board have a step and direction pin?
regards
Stefan
-
- Matrix Staff
- Posts: 2033
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 634 times
- Been thanked: 684 times
Re: MCP41XXX and possibly others.??
Hi Lambra.
There is a stepper stepper demo and datasheet, as the stepper motor is used on the BL0127 Actuators board.
I have just tested the stepper motor and its working for me.
I have also tested the quad encoder using the attached Flowchart.
If you want it to count quicker you will need to change the encoder properties of Post Scaler to 1:1
Your Quad encoder might have a different resolution to mine, so you might have to change the properties to suit
There is a stepper stepper demo and datasheet, as the stepper motor is used on the BL0127 Actuators board.
I have just tested the stepper motor and its working for me.
I have also tested the quad encoder using the attached Flowchart.
If you want it to count quicker you will need to change the encoder properties of Post Scaler to 1:1
Your Quad encoder might have a different resolution to mine, so you might have to change the properties to suit
- Attachments
-
- Quad Encoder IOC.fcfx
- (11.73 KiB) Downloaded 340 times
Martin
-
- Matrix Staff
- Posts: 1950
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 510 times
- Been thanked: 694 times
Re: MCP41XXX and possibly others.??
Hello,
I'm answering your MCP41xxx and encoder questions here, https://www.matrixtsl.com/mmforums/view ... 46#p107246
Please don't recreate new threads for the same problem.
I'm answering your MCP41xxx and encoder questions here, https://www.matrixtsl.com/mmforums/view ... 46#p107246
Please don't recreate new threads for the same problem.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Matrix Staff
- Posts: 1950
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 510 times
- Been thanked: 694 times
Re: MCP41XXX and possibly others.??
It came down to the fact you were using the MCP41XX component to drive a MCP41XXX part.
I've now created a new component for v9 that allows the MCP41XXX part to function.
You can get the new components by clicking on Help -> Library Updates and then changing Files in use to Full Database.
I've now created a new component for v9 that allows the MCP41XXX part to function.
You can get the new components by clicking on Help -> Library Updates and then changing Files in use to Full Database.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: MCP41XXX and possibly others.??
Hello there... I found out that the QUAD ENCODER - is probably not suitable for flowcode... really.. BUT I using it... simply on the B0 pin - INT pin with an interrupt routine.. to catch pulses.. then display them "periodically" and so hopefully I can use it...
This QUad encoder WORKS ONLY FROM 7v TO 24v.. .. so doubt whether it will work in flowcode.?? I am of course loathe to apply 12v and see it blow up the PIC input pins..!!
Also there is a little problem I have noted... when using the PIC16F1503 chip... and assigning an analogue input .. like pin 3 is RA4... and so if I go nto the GROVE POT component... and try to select RA4.. it returns An 3 ... for the value.. when I click on pin 3... of the chip...
Thanks guys...
Regards
This QUad encoder WORKS ONLY FROM 7v TO 24v.. .. so doubt whether it will work in flowcode.?? I am of course loathe to apply 12v and see it blow up the PIC input pins..!!
Also there is a little problem I have noted... when using the PIC16F1503 chip... and assigning an analogue input .. like pin 3 is RA4... and so if I go nto the GROVE POT component... and try to select RA4.. it returns An 3 ... for the value.. when I click on pin 3... of the chip...
Thanks guys...
Regards
-
- Matrix Staff
- Posts: 1950
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 510 times
- Been thanked: 694 times
Re: MCP41XXX and possibly others.??
Hello,
No don't connect 7v to your input pins that will kill the micro. You need to reduce the voltage going to he micro pins. Easiest way is potential divider circuits using resistors yo redu e the voltage to the micro pins to as close to vcc as possible.
A4 is analog channel 3 that sounds right to me.
No don't connect 7v to your input pins that will kill the micro. You need to reduce the voltage going to he micro pins. Easiest way is potential divider circuits using resistors yo redu e the voltage to the micro pins to as close to vcc as possible.
A4 is analog channel 3 that sounds right to me.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel