Home
GPIOMods
home
(WikiPage)
Download package codefailed Preface This is a collection of soft mods for the generic I/Os of a Linux based PLC. It can be used for example with Raspberry Pi, Beagle Bone Black. The Linux Scheduler and some specific circuits are used to implement different things, which would require more complicated hardware, otherwhise. GPIO PWM The function block, called "SoftPWM" is a soft PWM driver that makes use of a standard digital Output Pin. The Interval is constantly changed, to achieve the precise timing which is necessary to fulfill the requirements of the specified duty cycle. It has to be used from a separate, high priority task, which drives the output. But as the interval of this task constantly changes, you should best not add anything else to this task. A common mistake that's made is, that one uses the same FB instance in multiple tasks to generate the PWM signals. That can't work, because it would mess up the timing calculations in the FB. So best you instantiate the FB in a PRG, which you are used in exactly one task. Known issues The I/O driver of the Raspberry Pi seems to have a problem when it is called from multiple tasks. In this case, the PWM signal in software is generated correctly, but the output is updated in the wrong sequence. But, as it was the first target, which I personally used, its proven, that one task works pretty well 😉 GPIO AIN The function block "SoftAIN" is implementing the sampling of a so called "Poor man's ADC". It just uses a small variation from the widely documented "Poor man's ADC", by using two GPIOs, instead of just one. The advantage of this approach is, that we are more flexible in the selection of I/O drivers, which can be used with that. Virtually every combination of a digital input and output can be used to sample an analog input. We are using the digital output as the VRef. This way, it is easy to safely pull down the capacitors current, as the output is pulling down only the current, which itself loaded before.
Last updated: 2021-06-29
Home
nejimbarek
wiki
(WikiPage)
This is the personal project of nejimbarek. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2021-06-29
wiki Discussion
nejimbarek
wiki
(Discussion)
Forum for wiki comments
Last updated: 2021-06-29
blog Discussion
nejimbarek
blog
(Discussion)
Forum for blog comments
Last updated: 2021-06-29
(no subject)
nejimbarek
wiki
(Thread)
Last updated: 2021-06-29
Home
dibarrach
wiki
(WikiPage)
This is the personal project of dibarrach. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2021-06-29
wiki Discussion
dibarrach
wiki
(Discussion)
Forum for wiki comments
Last updated: 2021-06-29
blog Discussion
dibarrach
blog
(Discussion)
Forum for blog comments
Last updated: 2021-06-29
(no subject)
dibarrach
wiki
(Thread)
Last updated: 2021-06-29
wiki Discussion
martin84
wiki
(Discussion)
Forum for wiki comments
Last updated: 2021-06-29
blog Discussion
martin84
blog
(Discussion)
Forum for blog comments
Last updated: 2021-06-29
(no subject)
martin84
wiki
(Thread)
Last updated: 2021-06-29
Home
martin84
wiki
(WikiPage)
This is the personal project of martin84. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2021-06-29
Home
ryu123123
wiki
(WikiPage)
This is the personal project of ryu123123. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2021-06-30
wiki Discussion
ryu123123
wiki
(Discussion)
Forum for wiki comments
Last updated: 2021-06-30
blog Discussion
ryu123123
blog
(Discussion)
Forum for blog comments
Last updated: 2021-06-30
(no subject)
ryu123123
wiki
(Thread)
Last updated: 2021-06-30
Home
ramonahl
wiki
(WikiPage)
This is the personal project of ramonahl. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2021-06-30
wiki Discussion
ramonahl
wiki
(Discussion)
Forum for wiki comments
Last updated: 2021-06-30
blog Discussion
ramonahl
blog
(Discussion)
Forum for blog comments
Last updated: 2021-06-30
(no subject)
ramonahl
wiki
(Thread)
Last updated: 2021-06-30
blog Discussion
psorgenlos
blog
(Discussion)
Forum for blog comments
Last updated: 2021-06-30