Comments (8)
@bgruberg have a look at
in the first branch, usage of libgpiod is possible instead of rpi specific memory mapped IOs. in the second branch (which simply continuous the first), eeprom handling can be done by a tool called eeprog. furthermore, makefiles of the examples have been converted to link against libgpiod (this part can be improved probably)
from daqhats.
The daqhats are only supported on Raspberry Pi hardware and Raspberry Pi OS. The library uses low-level calls directly to the Broadcom IO interface hardware (thus the reliance on bcm_host.h) that would have to be ported to another processor.
from daqhats.
I have this library running on a iMX8 board. So it's definitely possible... I replace the boardcom lowlevel interface with gpiod, so that it will work on almost every board.
If @nwright-mcc is interested in such a solution, I may create a pull request...
from daqhats.
@bearsh would you mind sharing your Git repository with me so I can take a look at some of the changes you made to make this work?
from daqhats.
@bearsh Thanks for sharing the links to your repositories. What OS were you using to run this? I am trying to get this to run on Armbian.
from daqhats.
from daqhats.
@bearsh During the installation I get the following error:
gpio.c:18:10: fatal error: bcm_host.h: No such file or directory
18 | #include "bcm_host.h"
Which seems to be a file associated with librasperberrypi-dev and raspberry-kernel-headers which seem to be Rasbian specific files. How did you get around this?
from daqhats.
@bgruberg, you need to enable libgpiod and you alos need to define the pins. something like the following should work but you need to adjust the IO definitions. the first number is the gpiochip, the second the pin on that chip.
make GPIOD=1 EXTRA_CFLAGS="-DGENERIC_HAT -DADDR0_GPIO=0,19 -DADDR1_GPIO=0,16 -DADDR2_GPIO=0,22 -DRESET_GPIO=0,13 -DIRQ_GPIO=4,1 -DIRQ_IOEXP_GPIO=4,2" -C lib all
from daqhats.
Related Issues (20)
- MCC 172 Can't open device, after X successful reads HOT 4
- Issues when downloading with Docker HOT 2
- MCC 172 DAQ HAT cannot be detected HOT 1
- MCC 172 Recording HOT 2
- MCC172 examples C data_logger HOT 5
- phantom voltage spikes in buffer mcc118 HOT 2
- I can not save data to log file when using 2 mcc172 with 4 sensor HOT 1
- Insallation issue HOT 4
- Adding channels to data logger example HOT 6
- Unequal sample numbers using multiple hats HOT 5
- Hardware overruns? HOT 2
- MCC152 dio_config_write_dict(item, value_dict) fails HOT 1
- Running program in Docker container can't get HAT devices. HOT 1
- I want to use the MCC118 with different sampling rates per channel. HOT 3
- MCC172 ID SD and ID SC not available to access EEPROM HOT 2
- chan_string is too small line 214 in daqhats_utils.h HOT 1
- Bug with Continuous scanning with external clock HOT 5
- Library does not work on Raspberry Pi 5 HOT 3
- Problem installing from ./setup.sh HOT 45
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from daqhats.