Search found 1184 matches

by Dinosaur
Apr 24, 2019 16:28
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57238

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF Actually I have been tackling 2 problems at the same time. 1 is the extra pulse 2 is the Sync not working. Either way the code below is what I have been using to test for the extra pulse. #INCLUDE ONCE "BBB/pruio.bi" #INCLUDE ONCE "BBB/pruio_pins.bi" '=====================...
by Dinosaur
Apr 24, 2019 15:25
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57238

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF What happens in 'invers' mode (first high, then low). I meant to tell you that before. I have tested that and the same thing happens. It is worth noting that it happens about 30% of the time, and by watching the voltage of that early pulse you can see that it changes. Sometimes it makes it to...
by Dinosaur
Apr 24, 2019 13:02
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57238

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF Running your code as is still starts a short fast pulse at the beginning of the space time. However the setting of the output to Lo does work, other then when I quit the program it returns to Hi, which setting by Gpio does not do. If that is part of your code, then staying at the set level is...
by Dinosaur
Apr 23, 2019 21:26
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57238

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF After purging and re-installing I got Linux Header files missing. So, correcting that at the moment, but tell me what you were looking for in the statement: debian@beaglebone:~$ X=/sys/devices/platform/libpruio/state ; echo "ff06" > $X ; cat $X tbclk=0/7 (orig/curr) so that I will k...
by Dinosaur
Apr 23, 2019 16:44
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57238

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF According to this , it is. Debian@beaglebone:~$ dpkg -l libpruio* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-=...
by Dinosaur
Apr 23, 2019 16:11
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57238

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF

Code: Select all

debian@beaglebone:~$ X=/sys/devices/platform/libpruio/state ; echo "ff06" > $X ; cat $X
tbclk=0/7 (orig/curr)


Regards
by Dinosaur
Apr 23, 2019 15:12
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57238

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF Which Sync? io.Pwm->Sync(&b110) Did you update the LKM package? Yes, All packages are version c . I'll check this. My former testing was based on LED output. I've to find another output method. I am Happy to keep testing if you supply the changed code. The CRO (old fashioned speak for Cat...
by Dinosaur
Apr 21, 2019 14:53
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57238

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF Below result of my One Shot timer test after the changes you made. Conclusions in comments. #INCLUDE ONCE "BBB/pruio.bi" #INCLUDE ONCE "BBB/pruio_pins.bi" '================================================================== 'This test sets O/P P8-07 for single shot of Dur1 ...
by Dinosaur
Apr 20, 2019 19:19
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57238

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF Running your example code "as is" I am having the same problem as I did before. 1. Sync of clocks doesn't seem to work reliably. The "Gate" will be different by 1/2 cycle of the clock, and I think this is caused by the instructions: IF .Pwm->Sync(&b000) THEN ?"fai...
by Dinosaur
Apr 20, 2019 1:36
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57238

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF Many thanks for the update and time you are spending on this. It is worth noting that from all the browsing I have done, there are very few libraries for the BBB. Considering that so many young students are using (or trying to) Arduino & RPi and BBB, your effort will result in more FB par...
by Dinosaur
Apr 06, 2019 19:54
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57238

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF Additional information for you. The code below does NOT produce any output to the Picoscope the first time I run it after powering the BBB On. Every time there after it works perfectly. (Will email a pdf to you with Picoscope output.) #INCLUDE ONCE "BBB/pruio.bi" #INCLUDE ONCE "...
by Dinosaur
Apr 06, 2019 18:13
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57238

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF Fixing the single shot would be preferable, no rush , I will keep developing (and also look for alternatives) One further question on Config() I notice that the behaviour changes if I use Config(0,0) or (1,0) or any combination thereof. What is the correct way. Can I call config after setting...
by Dinosaur
Apr 06, 2019 14:18
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57238

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF

Many thanks for you detailed reply, will have to think about how to handle the pulse count.
I found and fixed a mis-scaling bug.

Will you update your site so that I can test it as well ?

Received my boards yesterday, so will solder one together and test as well.

Regards
by Dinosaur
Apr 04, 2019 20:24
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57238

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF Is this a fault or something I have mis-understood. If I set P9-14 Pwm1A to 50 Hz then set P9-16 PWM1B to 5 Hz Both channels run at 5Hz. So, to gate 50Hz for the duration 5Hz, I have had to use P9-14 and P8-13. However, that doesn't allow me to sync the channels. Edit: Sorry, each set of pwm'...
by Dinosaur
Apr 03, 2019 18:51
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57238

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF No panic on anything, if you get the timer SetValue working correctly, it will be used. To be honest, I don't really understand your target. So I cannot give any hints for optimization. To be able to; 1: Set & Read GPIO Done & working 2: Set a Timed Pulse output (ie: P8_07 Hi for 350 ...

Go to advanced search