Go to advanced search

by sajuukaran
Sun Jan 26, 2020 10:32 am
Forum: Automation, sensing and robotics
Topic: Sending bits for digital control
Replies: 12
Views: 646

Re: Sending bits for digital control

Brilliant.

I tried several configurations with your indications and it runs perfectly.
I don't even need a spare part to generate AC current anymore, just need a second PWM pin.

Again, thanks a lot ! :D
by sajuukaran
Sat Jan 25, 2020 4:05 pm
Forum: Automation, sensing and robotics
Topic: Sending bits for digital control
Replies: 12
Views: 646

Re: Sending bits for digital control

Good afternoon, I looked into jpigpio, it should do the job for java with very few differences than the original gpio C library. Now, I'm trying to understand further the mechanism to generate waves. Here is what I understand from your example : 1 - You create a wave form (is wvag = wave add generic...
by sajuukaran
Thu Jan 23, 2020 4:08 pm
Forum: Automation, sensing and robotics
Topic: Sending bits for digital control
Replies: 12
Views: 646

Re: Sending bits for digital control

I think I found a java wrapper of piGpio :

https://github.com/nkolban/jpigpio/blob ... ocket.java

In this library, waves piGpio methods are implemented.
I'll try as soon as I understand how to use it :)
by sajuukaran
Wed Jan 22, 2020 8:35 pm
Forum: Automation, sensing and robotics
Topic: Sending bits for digital control
Replies: 12
Views: 646

Re: Sending bits for digital control

Right, definitetly software, definitely irrelevant ...

Have you ever heard about hardware based waves, generated by java methods ?
by sajuukaran
Wed Jan 22, 2020 7:04 pm
Forum: Automation, sensing and robotics
Topic: Sending bits for digital control
Replies: 12
Views: 646

Re: Sending bits for digital control

Thanks a lot ! What I am looking for actually exists ! At least, if I don't have any other way, I can still learn python to use your solution. Additional problem : I only know java coding ... I found methods that look similar to your proposition : Here is a javadoc of pi4j I understand that "pulse" ...
by sajuukaran
Wed Jan 22, 2020 5:19 pm
Forum: Automation, sensing and robotics
Topic: Sending bits for digital control
Replies: 12
Views: 646

Re: Sending bits for digital control

joan wrote:
Wed Jan 22, 2020 4:29 pm
Is zero 58 on then 58 off?
Is one 116 on then 116 off?
Not exactly :

1 : 58us high then 58us low (116us period) ;
0 : 100us high then 100us low (200 us period).
by sajuukaran
Wed Jan 22, 2020 3:47 pm
Forum: Automation, sensing and robotics
Topic: Sending bits for digital control
Replies: 12
Views: 646

Re: Sending bits for digital control

Here is the type of signal I am willing to create : DCCsig.png I corrected the periods in my first message : 116 us period for a 1, 200 us for a 0. To have a proper AC signal, I'll use a spare part that will turn a 0/+3.3V signal into -3.3V/+3.3V. For now, my problem is the shape of the signal, to s...
by sajuukaran
Wed Jan 22, 2020 3:01 pm
Forum: Automation, sensing and robotics
Topic: Sending bits for digital control
Replies: 12
Views: 646

Sending bits for digital control

Good afternoon everybody, I am willing to use a RPi for digital control. The signal must be a wave-type current. To send a 1, I shall send a wave with a 116 microsecond period. To send a 0, it must be a 200 microsecond period wave. When I'm not sending packets, the signal must be a continuous follow...

Go to advanced search