Go to advanced search

by danjperron
Sun Jun 30, 2019 1:53 pm
Forum: Français
Topic: Vos recommandations – PI à 10 mètres des senseurs
Replies: 9
Views: 468

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: 394

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: 394

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: 394

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: 468

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: 468

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: 824

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: 824

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: 468

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: 7
Views: 3484

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: 530

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: 530

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: 330

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: 790

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: 1125

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: 1080

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: 1125

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: 1125

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: 1125

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: 743

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.
by danjperron
Thu Jun 13, 2019 4:35 pm
Forum: General discussion
Topic: Running 3 RC522 side by side continuously
Replies: 14
Views: 743

Re: Running 3 RC522 side by side continuously

If I wanted to check each device on the same application, I guess I would have to just loop through each chip select every 50 ms or so (based on research that it takes about 50 ms to read). Does that sound right? Just check the read function if the serial ID change. if it does then act on it. You d...
by danjperron
Thu Jun 13, 2019 1:54 pm
Forum: General discussion
Topic: Running 3 RC522 side by side continuously
Replies: 14
Views: 743

Re: Running 3 RC522 side by side continuously

Use a chip select different for each RC522 readers. You will need to check each device on the same application or run three different application by selecting different CHIP select or SPI modules.

The raspberry Pi has multiple SPI modules. Check the /boot/overlays/README for more information.
by danjperron
Tue Jun 11, 2019 6:14 pm
Forum: Python
Topic: Moving 16 servos in a wave
Replies: 11
Views: 696

Re: Moving 16 servos in a wave

Just A question. Why calculating sine value since servos are in facto in angle already! more or less from -90 to 90 degree. Using sine value to calculate the difference between each servo won't provide a nice sinewave. You should instead split the number between the -90 to 90 using linear value. Nor...
by danjperron
Sat Jun 08, 2019 11:59 am
Forum: Beginners
Topic: Reading analog input voltage of 0-30v
Replies: 4
Views: 426

Re: Reading analog input voltage of 0-30v

@W. H. Heydt you forgot to check the link to the interface. It is not connected to the GPIO but to an A/D converter! ;-) A simple resistor divider before your A/D converter will do the trick! A 47K resistor with a 4K7 resistor to ground will reduce the voltage by 1/11. Then a 30V will have 2.727 V. ...
by danjperron
Fri Jun 07, 2019 1:40 pm
Forum: Français
Topic: raspberry pi and sabertooth 2X25
Replies: 35
Views: 6936

Re: raspberry pi and sabertooth 2X25

Il a moyen de contourner le problème de démarrage. Voici une piste possible 1 - Utiliser un 74HCT02 au lieu des deux transistors. une porte pour inverser le signal et la deuxième porte avec un entrée sur une délais de temporisation style LM555. Le délais devrait être plus long pour dépasser la fluct...

Go to advanced search