Go to advanced search

by danjperron
Fri Jul 19, 2019 9:01 pm
Forum: Camera board
Topic: MJPG-STREAMER make error
Replies: 1
Views: 58

Re: MJPG-STREAMER make error

Code: Select all

https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=109352&hilit=%2Cjpeg+streamer+patch#p751735
just rem the line 32 in ~/mjpg-streamer/mjpg-streamer/utils.c

Code: Select all

//#include <linux/stat.h>
by danjperron
Wed Jul 17, 2019 7:16 pm
Forum: Troubleshooting
Topic: I can't get the wpa_supplicant.conf to work
Replies: 6
Views: 175

Re: I can't get the wpa_supplicant.conf to work

I had the same thing Yesterday. Removed the key_mgmt and put the country on the first line. country=US ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="NETWORK-NAME" psk="NETWORK-PASSWORD" } Set your country, essid and password and save it. I also go some disco...
by danjperron
Tue Jul 16, 2019 5:08 pm
Forum: Automation, sensing and robotics
Topic: DS18B20 difference
Replies: 3
Views: 136

Re: DS18B20 difference

To check if the sensor is on 12 bits, just check the fourth byte, index start at 0, from the registers dump. pi@raspberrypi:/sys/bus/w1/devices/28-000004575f0a $ cat w1_slave 6d 01 ff ff 7f ff 03 10 17 : crc=17 YES 6d 01 ff ff 7f ff 03 10 17 t=22812 The fourth register is 0x7f then it is 12 bits. if...
by danjperron
Tue Jul 16, 2019 4:59 pm
Forum: Automation, sensing and robotics
Topic: DS18B20 difference
Replies: 3
Views: 136

Re: DS18B20 difference

Are the two sensors near each other? How far one of the sensor is from the PI itself? The Pi is a source of heat and will change the surrounding temperature. Wire are good heat conductor! Like Andyroo posted, you are in the tolerance. N.B. You said that your sensors return 27 and 28 Celsius . This ...
by danjperron
Sun Jun 30, 2019 1:53 pm
Forum: Français
Topic: Vos recommandations – PI à 10 mètres des senseurs
Replies: 9
Views: 281

Re: Vos recommandations – PI à 10 mètres des senseurs

Michel,

Sur Arduino Québec, (facebook), Hugo a fait exactement ce que tu veux faire.

https://www.facebook.com/groups/7129686 ... 049276606/
by danjperron
Sun Jun 30, 2019 1:16 pm
Forum: Troubleshooting
Topic: SSH into Raspberry Pi connected to OpenVPN
Replies: 7
Views: 236

Re: SSH into Raspberry Pi connected to OpenVPN

I can connect to the VPN server with ssh 10.8.0.1. Exactly ! Has soon that your open vpn is connected, the local vpn intranet 10.8.X.X ( depending of your setup) is available anywhere. But if you want to connect to another device in your home you need to connect using your home intranet IP. N.B. I ...
by danjperron
Sun Jun 30, 2019 1:19 am
Forum: Troubleshooting
Topic: SSH into Raspberry Pi connected to OpenVPN
Replies: 7
Views: 236

Re: SSH into Raspberry Pi connected to OpenVPN

When you say forward the openvpn port, do you mean the forwarded port from openvpn? Yes. Check the port of your openvpn. cat /etc/openvpn/server.conf or openvpn.conf # Which TCP/UDP port should OpenVPN listen on? # If you want to run multiple OpenVPN instances # on the same machine, use a different...
by danjperron
Sat Jun 29, 2019 8:22 pm
Forum: Troubleshooting
Topic: SSH into Raspberry Pi connected to OpenVPN
Replies: 7
Views: 236

Re: SSH into Raspberry Pi connected to OpenVPN

forward the openvpn port from your router to your PI. this is what I do. Only the vpn port is forwarded to my openvpn server. When I connect to my openvpn server which is inside my intranet I do have access to all my computer at home. N.B. I'm using dyndns.org to get my home internet IP. This way I ...
by danjperron
Sat Jun 29, 2019 6:27 pm
Forum: Français
Topic: Vos recommandations – PI à 10 mètres des senseurs
Replies: 9
Views: 281

Re: Vos recommandations – PI à 10 mètres des senseurs

Ok, je vais envisagé cette option. Je demeure dans le région de Québec.
Parfait, inscris-toi sur Facebook pour le groupe Arduino Québec. Le fondateur est de la région de Québec et tu vas pouvoir avoir de l'aide avec les arduinos, ESPs ou le raspberry Pi. Je suis membre de ce groupe.

Bonne chance!
by danjperron
Sat Jun 29, 2019 3:28 pm
Forum: Français
Topic: Vos recommandations – PI à 10 mètres des senseurs
Replies: 9
Views: 281

Re: Vos recommandations – PI à 10 mètres des senseurs

La version 1.0 du Raspberry Pi a été utilisé deux ans pendant l'hiver dans mon étang pour le contrôle de la température. Le RPi n'a jamais planté mais la caméra USB oui, lorsque la température a été plus basse que -30 celsius. Je ne sais pas de quel région tu viens mais je peux te dire qu'il n'y a p...
by danjperron
Sat Jun 29, 2019 12:58 pm
Forum: C/C++
Topic: Which Pi am I?
Replies: 9
Views: 494

Re: Which Pi am I?

thank Dirks,

I will have to modify the code for the Pi4.

The ram size is not correct , the iomap and.....



Daniel
by danjperron
Fri Jun 28, 2019 6:45 pm
Forum: C/C++
Topic: Which Pi am I?
Replies: 9
Views: 494

Re: Which Pi am I?

I made a c++ application long time ago.

Could someone run it on the Pi4 and give me the result

raspiInfo.cpp

Code: Select all

git clone https://gist.github.com/danjperron/2728a6178f265564cdd7fba34b2e44a3 raspiInfo
cd raspiInfo
g++ -o raspiInfo raspiInfo.cpp
./raspiInfo
by danjperron
Fri Jun 28, 2019 5:28 pm
Forum: Français
Topic: Vos recommandations – PI à 10 mètres des senseurs
Replies: 9
Views: 281

Re: Vos recommandations – PI à 10 mètres des senseurs

il serait beaucoup plus simple de te trouver une boîte nema 4 et de mettre le tout près de la piscine. La boîte doit être assez grande pour que le RPi ne chauffe pas. L' autre méthode est de brancher tes capteurs sans fils ou avec des arduinos en RS-485. J'ai un exemple de capteurs DS18B20 et DHT22 ...
by danjperron
Thu Jun 27, 2019 1:09 pm
Forum: C/C++
Topic: Measuring stepper motor distance travelled with PWM
Replies: 1
Views: 813

Re: Measuring stepper motor distance travelled with PWM

Well you could set a counter to your PWM pulse. https://www.raspberrypi.org/forums/viewtopic.php?t=33113 I.M.O. you should add a microcomputer for that like an arduino or a pic. Use the PWM has a clock and the FWD/REV to count up or down. The microcomputer could report the exact position using seria...
by danjperron
Wed Jun 26, 2019 8:26 pm
Forum: Français
Topic: Pi Zéro, potentiomètre et afficher led 8 segments
Replies: 5
Views: 427

Re: Pi Zéro, potentiomètre et afficher led 8 segments

Merci totoharibo,

Oui je me souviens d'un post avec pigpio sur ce sujet.
by danjperron
Wed Jun 26, 2019 6:13 pm
Forum: Français
Topic: Pi Zéro, potentiomètre et afficher led 8 segments
Replies: 5
Views: 427

Re: Pi Zéro, potentiomètre et afficher led 8 segments

Évidement avec un convertisseur analogique c'est plus facile. Mais ce n'est pas nécessaire. Il est possible de lire la valeur d'un potentiomètre en utilisant un circuit RC. La valeur du potentiomètre sera converti en temps. Le GPIO en mode de sortie décharge le circuit RC et ensuite tu configures le...
by danjperron
Thu Jun 20, 2019 6:37 pm
Forum: Français
Topic: Classes faciles d'utilisation pour client-serveur
Replies: 2
Views: 291

Re: Classes faciles d'utilisation pour client-serveur

Oui il y a print a modifier! Les strings avec encode() et decode(). Les sockets n'envoient plus des caractères mais des bytearrays! voici DataClient1.py modifié pour python3 from threading import Thread import socket, time VERBOSE = True IP_ADDRESS = "192.168.0.17" IP_PORT = 22000 def debug(text): i...
by danjperron
Thu Jun 20, 2019 4:36 pm
Forum: Beginners
Topic: Propriety modbus RS485
Replies: 7
Views: 313

Re: Propriety modbus RS485

I made an interesting module using modbus. I do have test multiple rs-485 adapter. take a look and to understand how to access modbus. I'm using minimalmodbus. https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=75189&hilit=modbus You should check modicom modbus protocol. look at the wiki and re...
by danjperron
Tue Jun 18, 2019 1:58 pm
Forum: Automation, sensing and robotics
Topic: DS18B20 resolution
Replies: 15
Views: 881

Re: DS18B20 resolution

I'm just curious! What is the result of my application configDS18B20 git clone https://github.com/danjperron/BitBangingDS18B20 cd BitBangingDS18B20 gcc -o configDS18B20 configDS18B20.c Connect only one sensor to a GPIO pin. Not the GPIO4 but any in IN/OUT mode. Don't forget to power it up with 3.3V ...
by danjperron
Mon Jun 17, 2019 6:45 pm
Forum: Other projects
Topic: ADS1115 is not detected by i2c
Replies: 9
Views: 754

Re: ADS1115 is not detected by i2c

From your picture, are using breakaway male header with wire solder to your ads1115. Looks like wire solder to pin. I don't think that it is stable enough. Also you have another board under your PI3. Your ruban cable looks to be connected at the bottom. Is the connection pin mirrored in that case. I...
by danjperron
Mon Jun 17, 2019 2:23 pm
Forum: Automation, sensing and robotics
Topic: DS18B20 resolution
Replies: 15
Views: 881

Re: DS18B20 resolution

Because the original question on this thread was why some waterproof sensors were producing readings of XX.XX but other sensors were producing readings of XX.XXX I'm sorry but xx.xx is not 0.25! xx.xx imply resolution less than 0.01 but the post is about difference between 0.25 and 0.063 which show...
by danjperron
Mon Jun 17, 2019 1:00 pm
Forum: Automation, sensing and robotics
Topic: DS18B20 resolution
Replies: 15
Views: 881

Re: DS18B20 resolution

Accuracy of the DS18B20 is 0.5 Celsius. Half of a full degree!!! It is normal to get more resolution than accuracy otherwise you couldn't get a good accuracy! At 12 bits you are at 0.0625 Celsius which is a little more than 1 decimal resolution. So why are you looking at 3 decimals when the resoluti...
by danjperron
Sun Jun 16, 2019 10:26 pm
Forum: Automation, sensing and robotics
Topic: DS18B20 resolution
Replies: 15
Views: 881

Re: DS18B20 resolution

You could use my user mode method.


The application configDS18B20 could set your bit resolution.


Use another pin than GPIO4 to set the resolution.

https://github.com/danjperron/BitBangingDS18B20
by danjperron
Sun Jun 16, 2019 6:17 pm
Forum: General discussion
Topic: Running 3 RC522 side by side continuously
Replies: 14
Views: 545

Re: Running 3 RC522 side by side continuously

I'm with mikronauts,

Use a LE33cz or any low drop 3.3v regulator connected to the 5V to power your RC-522 device.

Go to advanced search