You have reached the legacy GHI Electronics, LLC website, for the new website please visit here. For the new forum please visit here.

You must be logged in to reply.

Page 1 of 1 out of 7 messages.

PWMInput in TinyCLR

2 likes
Posted 3mth ago
by opiswahn | Newbie | 110 exp
Posted 3mth ago
by opiswahn | Newbie | 110 exp
Hi,

is there a way in TinyCLR to read a PWM input like eg. in Arduino?
I have seen there is a PMW-Out, but what to do if you have to read PWM?

Greets
Reply #1 — Posted 3mth ago
by Gus_ghielectroncs | Employee
Reply #1 — Posted 3mth ago
by Gus_ghielectroncs | Employee
Counting pulses or checking with of pulses? What exactly are you trying to do?
Reply #2 — Posted 3mth ago
by Mr. John Smith | Legend | 42,263 exp
Reply #2 — Posted 3mth ago
by Mr. John Smith | Legend | 42,263 exp
opiswahn says:

Hi,

is there a way in TinyCLR to read a PWM input like eg. in Arduino?
I have seen there is a PMW-Out, but what to do if you have to read PWM?

Greets

Anybody else read this in bender's voice Sad

There is not PWM in. There is only the pulse counter, or if you're adventurous you can modify the TinyCLR with a method to do just that. Or you can smooth the PWM signal with resistor and capacitor then read the analogue value with one of the analogue inputs.
2 likes
Reply #3 — Posted 3mth ago
by opiswahn | Newbie | 110 exp
Reply #3 — Posted 3mth ago
by opiswahn | Newbie | 110 exp
Sorry for the late reply, had to wait out the newbee antispam period Smiley

I want to read the PWM Input from an RC Receiver. I intend to use it as a controller for a robot based on a Cerb40.

Greets,
Reply #4 — Posted 2mth ago
by opiswahn | Newbie | 110 exp
Reply #4 — Posted 2mth ago
by opiswahn | Newbie | 110 exp
@Mr. John Smith -

So... how would i do that? Are there some examples?
1 like
Reply #5 — Posted 2mth ago
by Brett | Superhuman | 125,590 exp
Reply #5 — Posted 2mth ago
by Brett | Superhuman | 125,590 exp
Reply #6 — Posted 2mth ago
by John_ghielectroncs | Employee
Reply #6 — Posted 2mth ago
by John_ghielectroncs | Employee
@Brett and opiswahn - SignalCapture exists in TinyCLR as well, under GHIElectronics.TinyCLR.Devices.GpioChangeReader. The API is the same as NETMF for now.

Page 1 of 1 out of 7 messages.

You must be logged in to reply.