Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
HELLO EDWIN,
HERE IS MOHAN PATEL FROM INDIA,
I AM RTRYING TO READ ANALOG VALUE USING MCP3008 WITH RASPBERRY PI , IT LOOKS EVERY THING OK BUT ON MY CHANNEL1 , ONLY 0 VALUE DISPLAY,
PLEASE GIVE ME CORRECTION WHERE I AM MISSING OR WORNG. I AM ATTACHING THE IMAGE OF MY PROJECT.
THANK YOU IN ADVANCE.
Thanks for your quick reply,
I tried to run same as it is given in Codesys control for Raspberry pi
Examples,
I have done no changes, It also shows every thing running without error,
but reading on channel 0 not changing to non zero,
Do I need to make any changes any other place apart from Max speed ? I
reduced it yo 50000 but still not getting result
I am attaching screenshot my work, please look at it and reply as when you
are free.
Also is there any other way to read analog value in Raspberry pi by other
means? I want to read two analog values.
I tried to use Arduino Uno through I2C protocol, but I face the problem
that I need to restart arduino uno frequently as it gets hang or leave
communication with the Raspberry Pi .
What I found that read analog value status shows FALSE, what should I do?
Thanks
Mohan Patel Head Center for Automation Assistant Professor
P P Savani University
NH 8, GETCO, Near Biltech,
Village: Dhamdod, Kosamba,
Dist.Surat - 394125. Mobile: +918469351570 E-Mail: mohan.patel@ppsu.ac.in Website: www.ppsu.ac.in
HELLO EDWIN,
HERE IS MOHAN PATEL FROM INDIA,
I AM RTRYING TO READ ANALOG VALUE USING MCP3008 WITH RASPBERRY PI , IT LOOKS EVERY THING OK BUT ON MY CHANNEL1 , ONLY 0 VALUE DISPLAY,
PLEASE GIVE ME CORRECTION WHERE I AM MISSING OR WORNG. I AM ATTACHING THE IMAGE OF MY PROJECT.
THANK YOU IN ADVANCE.
you need to reduce the max spi speed to for example 100000, then it might work.
https://forge.codesys.com/forge/talk/Runtime/thread/aae9d90a87/
Last edit: eschwellinger 2022-08-28
Thanks for your quick reply,
I tried to run same as it is given in Codesys control for Raspberry pi
Examples,
I have done no changes, It also shows every thing running without error,
but reading on channel 0 not changing to non zero,
Do I need to make any changes any other place apart from Max speed ? I
reduced it yo 50000 but still not getting result
I am attaching screenshot my work, please look at it and reply as when you
are free.
Also is there any other way to read analog value in Raspberry pi by other
means? I want to read two analog values.
I tried to use Arduino Uno through I2C protocol, but I face the problem
that I need to restart arduino uno frequently as it gets hang or leave
communication with the Raspberry Pi .
What I found that read analog value status shows FALSE, what should I do?
Thanks
On Sun, Aug 28, 2022 at 11:34 AM eschwellinger no-reply@codesys.com wrote:
--
Thanks & Regards
Mohan Patel
Head Center for Automation Assistant Professor
P P Savani University
NH 8, GETCO, Near Biltech,
Village: Dhamdod, Kosamba,
Dist.Surat - 394125.
Mobile: +918469351570
E-Mail: mohan.patel@ppsu.ac.in
Website: www.ppsu.ac.in