Go to advanced search

by nliviu
Fri Jan 08, 2021 7:16 pm
Forum: Advanced users
Topic: Argon One Replacement Daemon
Replies: 189
Views: 11758

Re: Argon One Replacement Daemon

Maybe a flag like "rising_edge_detected" might be useful to ensure the pulse detection sequence is rising edge followed by a falling edge?
by nliviu
Fri Jan 08, 2021 11:13 am
Forum: Advanced users
Topic: Argon One Replacement Daemon
Replies: 189
Views: 11758

Re: Argon One Replacement Daemon

Thu Jan 7 11:51:49 2021 [INFO] Startup ArgonOne Daemon ver 0.2.2 Thu Jan 7 11:51:49 2021 [INFO] Now waiting for button press Thu Jan 7 11:51:49 2021 [INFO] Monitoring line 4 on /dev/gpiochip0 Thu Jan 7 11:51:51 2021 [INFO] Successfully opened /dev/vcio for temperature sensor Thu Jan 7 12:59:04 2021...
by nliviu
Tue Nov 17, 2020 7:32 am
Forum: C/C++
Topic: [NEED HELP] Problem with libgpiod - undefined reference to its function
Replies: 12
Views: 561

Re: [NEED HELP] Problem with libgpiod - undefined reference to its function

The correct flag for adding the library is -lgpiod The current version of libgpiod-dev on Raspberry Pi OS is 1.2-3: dpkg -l libgpiod-dev 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...
by nliviu
Mon Nov 16, 2020 7:31 pm
Forum: C/C++
Topic: [NEED HELP] Problem with libgpiod - undefined reference to its function
Replies: 12
Views: 561

Re: Problem with libgpiod - undefined reference to its function

Try

Code: Select all

g++ -Wall -Wextra -Werror -lgpiod libgpio.cpp
Your command line gives me

Code: Select all

g++ -Wall -Wextra -Werror -libgpiod libgpio.cpp
/usr/bin/ld: cannot find -libgpiod
The installed version here is libgpiod-dev 1.2-3+rpi1 on a RPI4 4GB. Installed with

Code: Select all

sudo apt install libgpiod-dev
by nliviu
Fri Oct 30, 2020 2:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: DS18B20 works on Pi Model 1B, and 2B, but not model 4
Replies: 2
Views: 194

Re: DS18B20 works on Pi Model 1B, and 2B, but not model 4

GPIO4 (the default for the 1-wire interface) is used by the case (the power button IIRC).
by nliviu
Sun Oct 04, 2020 2:22 pm
Forum: General discussion
Topic: Imaging an RPi SDcard on another RPi, how?
Replies: 17
Views: 612

Re: Imaging an RPi SDcard on another RPi, how?

FYI, imgclone supports cloning another device then the currently mounted sd card: $ ./imgclone -? ---- Raspberry Pi clone to image V1.8 --- ----------------------------------------------- ---- DO NOT CHANGE FILES ON YOUR SD CARD --- ---- WHILE THE BACKUP PROGRAM IS RUNNING --- ---- THE DESTINATION ....
by nliviu
Thu Sep 24, 2020 5:01 pm
Forum: Advanced users
Topic: Argon One Replacement Daemon
Replies: 189
Views: 11758

Re: Looking for Argon One case details

DarkElvenAngel wrote:
Thu Sep 24, 2020 3:03 pm
@nliviu,
If you did the build and install could you just let me know that it's working for you?
Thanks
The build, install, uninstall worked. I don't have an argon case for this RPi.
by nliviu
Wed Sep 23, 2020 6:42 pm
Forum: Advanced users
Topic: Argon One Replacement Daemon
Replies: 189
Views: 11758

Re: Looking for Argon One case details

FYI, the configure script does not detect the 64 bit Raspberry Pi OS: $ ./configure Distro check [debian] WARNING: UNKNOWN DISTRO, The installer may not work SYSTEM CHECK gcc : OK dtc : OK make : OK bash-autocomplete : OK I2C Bus check : ENABLED Dependency Check Successful $ uname -m aarch64 $ cat /...
by nliviu
Sat Sep 12, 2020 5:20 pm
Forum: General discussion
Topic: my pi B rev 2 512M RAM still kicking
Replies: 6
Views: 381

Re: my pi B rev 2 512M RAM still kicking

My Pi Model B Rev 2 is also running dump1090 at 80% load. Recently updated it in-place to Buster.
by nliviu
Thu Sep 10, 2020 5:48 pm
Forum: C/C++
Topic: Questions about porting from C to C++
Replies: 49
Views: 1941

Re: Questions about porting from C to C++

It looks like you are compiling that file with c++ or g++. Compile it wit cc or gcc. clang will also throw errors. Example: #include <stdio.h> enum event { EV_INIT = 0, EV_SYN, EV_KEY, EV_REL, EV_ABS, EV_MSC, EV_LED, EV_SND, EV_REP, EV_FF, EV_PWR, EV_FF_STATUS, EV_MAX }; const char *events[EV_MAX + ...
by nliviu
Thu Sep 10, 2020 5:00 pm
Forum: Beginners
Topic: Installing Innoextract
Replies: 2
Views: 102

Re: Installing Innoextract

Follow the same steps:

Code: Select all

wget https://constexpr.org/innoextract/files/innoextract-1.9.tar.gz
tar xzf innoextract-1.9.tar.gz
cd innoextract-1.9/
mkdir build && cd build
cmake ..
make
sudo make install
by nliviu
Thu Sep 10, 2020 9:25 am
Forum: Python
Topic: Multiple DS18B20's, best way to code (Python) for multiple sensors? [Solved]
Replies: 14
Views: 565

Re: Multiple DS18B20's, best way to code (Python) for multiple sensors?

Another version (with my own sensor ids): #!/usr/bin/env python3 import csv import os import time sensors = ["28-020a92455e3c", "28-0207924579fa"] sensors_map = { sensors[0]: "Waterproof Probe = ", sensors[1]: "Breadboard Probe 1 = "} def read_temp(id): sensor...
by nliviu
Thu Sep 10, 2020 6:36 am
Forum: General discussion
Topic: Changing the i2c-adress from a RTC
Replies: 11
Views: 494

Re: Changing the i2c-adress from a RTC

M4TTHI wrote:
Thu Sep 10, 2020 6:24 am
But could you explain to me what an EEPROM is?
Datasheet
by nliviu
Thu Sep 10, 2020 6:09 am
Forum: General discussion
Topic: Changing the i2c-adress from a RTC
Replies: 11
Views: 494

Re: Changing the i2c-adress from a RTC

This module uses the DS3231 RTC (I2C address 0x68). It also have a I2C 4kB 24C32N EEPROM (address 0x57).
The address of the DS3231 cannot be changed.

I have a similar module which works very well with RPi4.
by nliviu
Wed Sep 09, 2020 12:34 pm
Forum: Beginners
Topic: How to add and control Fan in RPi4 without other power source
Replies: 11
Views: 523

Re: How to add and control Fan in RPi4 without other power source

What is the power rating of your fan?
by nliviu
Wed Sep 09, 2020 11:40 am
Forum: Beginners
Topic: How to add and control Fan in RPi4 without other power source
Replies: 11
Views: 523

Re: How to add and control Fan in RPi4 without other power source

Probably the transistor does not open enough to provide the current for the fan to start.
Measure the collector emitter voltage when the GPIO is on (or when connecting the 1K resistor to 3.3V) and reduce the resistor's value until it is less than 0.5V.
by nliviu
Wed Sep 09, 2020 10:54 am
Forum: Other projects
Topic: Portable ADS-B low flying aircraft alarm
Replies: 6
Views: 819

Re: Portable ADS-B low flying aircraft alarm

pidd wrote:
Tue Sep 08, 2020 1:14 pm
Any recommends on one ADS receiver over others?
Currently I use RTL-SDR Blog V3 R820T2 RTL2832U 1PPM TCXO SMA Software Defined Radio

Other options might be the FlightAware sticks, eg. FlightAware Pro Stick Plus
by nliviu
Tue Sep 08, 2020 12:08 pm
Forum: Other projects
Topic: Portable ADS-B low flying aircraft alarm
Replies: 6
Views: 819

Re: Portable ADS-B low flying aircraft alarm

The easiest way would be to connect to port 30003 from dump1090 and parse the data. Example output: MSG,6,1,1,424776,1,2020/09/08,15:03:22.428,2020/09/08,15:03:22.428,,,,,,,,4701,0,0,0, MSG,6,1,1,424776,1,2020/09/08,15:03:22.428,2020/09/08,15:03:22.428,,,,,,,,4701,0,0,0, MSG,5,1,1,424776,1,2020/09/0...
by nliviu
Mon Sep 07, 2020 6:45 am
Forum: Troubleshooting
Topic: [SOLVED]Weird behaviour outputting a BME280 to influx on a Pi ZeroW
Replies: 4
Views: 199

Re: Weird behaviour outputting a BME280 to influx on a Pi ZeroW

You have to move

Code: Select all

iso = time.ctime()
in the while loop, otherwise all the records will be sent to influxdb with the same timestamp (the time when the script started).
by nliviu
Mon Sep 07, 2020 6:02 am
Forum: General discussion
Topic: Get your Pi to fight COVID-19
Replies: 194
Views: 15689

Re: Get your Pi to fight COVID-19

ejolson wrote:
Mon Sep 07, 2020 5:49 am
Is anyone else still running Rosetta on their Raspberry Pi?
Yes, I'm running it on a RPI4/8GB for 2 months. Total credit 60713.
by nliviu
Fri Aug 07, 2020 2:33 pm
Forum: Beginners
Topic: External USB Hard drive mounted, partioned but not listed (was: How to check how much free space is left on external HD)
Replies: 22
Views: 884

Re: External USB Hard drive mounted, partioned but not listed (was: How to check how much free space is left on external

Unmount from /mnt/exHDD and mount on /mnt/USBStick

Code: Select all

sudo umount /mnt/exHDD
sudo mount -t ext2 /dev/sda1 /mnt/USBStick
by nliviu
Fri Aug 07, 2020 1:31 pm
Forum: Beginners
Topic: External USB Hard drive mounted, partioned but not listed (was: How to check how much free space is left on external HD)
Replies: 22
Views: 884

Re: External USB Hard drive mounted, partioned but not listed (was: How to check how much free space is left on external

My bet is that the directory /mnt/USBStick is populated with files from the sd, not from the external drive which is not mounted. Try to unmount it sudo umount /mnt/USBStick If the result is "umount: /mnt/USBStick: not mounted.", you can try to mount it from the command line, assuming /mnt...
by nliviu
Fri Aug 07, 2020 10:13 am
Forum: Beginners
Topic: External USB Hard drive mounted, partioned but not listed (was: How to check how much free space is left on external HD)
Replies: 22
Views: 884

Re: External USB Hard drive mounted, partioned but not listed (was: How to check how much free space is left on external

It looks like it's not mounted.

A mount point has a full path, something like "/mnt/USBStick".
The entry in the mount list should read something like

Code: Select all

/dev/sda1 on /mnt/USBStick ...
If you can see it with filezilla, you can see it in the ssh session too (using the same path).

Go to advanced search