Go to advanced search

by filon
Sat Jul 20, 2019 9:10 pm
Forum: Troubleshooting
Topic: Strange GPIO behavior
Replies: 3
Views: 313

Re: Strange GPIO behavior

Thanks for answers. @dl324 I was aware of that, but I thought that process swapping can only work in my favour (increasing waiting time), but now when I think about it I see how it might not. Additional questions: 1. )Do You think that incorporating "General Purpose GPIO Clocks" and/or PWM to toggle...
by filon
Sat Jul 20, 2019 4:45 pm
Forum: Troubleshooting
Topic: Strange GPIO behavior
Replies: 3
Views: 313

Strange GPIO behavior

I found something strange. I set one pin as OUTPUT and the other as INPUT and connected them together. The idea was to toggle OUTPUT pin and be able to read it's current value on INPUT pin. Nothing special. My code is: for(;;) { gpioSet(OUTPUT_PIN); //set 1 on output (takes ~17ns) for(int j=0;j<100;...
by filon
Wed Jul 17, 2019 9:41 am
Forum: Troubleshooting
Topic: Analog-Digital conversion not working over ~20 ksps
Replies: 2
Views: 333

Re: Analog-Digital conversion not working over ~20 ksps

This is my testing code for AD7825 converter. I made some descriptions in comments, so it will be easier to understand, but if there will be anything unclear I will be happy to clarify it. #include <stdio.h> #include <stdio_ext.h> #include <sys/time.h> #include <math.h> #include <pigpio.h> #include ...
by filon
Tue Jul 16, 2019 11:29 pm
Forum: Troubleshooting
Topic: Analog-Digital conversion not working over ~20 ksps
Replies: 2
Views: 333

Analog-Digital conversion not working over ~20 ksps

Description : I'm trying to make a simple test of external analog-digital converter using my Rapberry Pi 3B+. My setup looks like this: https://www.makrosfera.net/proj/schematic1.png I have 2 fixed analog voltage levels (v1, v2), which are inputs to multiplexer. Raspberry tells multiplexer which vo...

Go to advanced search