Go to advanced search

by danjperron
Tue Dec 11, 2018 4:50 pm
Forum: Beginners
Topic: Raspberry Pi 2 model B with RC522 - Does not read tags
Replies: 4
Views: 89

Re: Raspberry Pi 2 model B with RC522 - Does not read tags

Maybe the first thing to do is to check if you have the spidev Check if spidev is listed [email protected]:~ $ ls -l /dev/spi* crw-rw---- 1 root spi 153, 0 déc 4 11:06 /dev/spidev0.0 crw-rw---- 1 root spi 153, 1 déc 4 11:06 /dev/spidev0.1 if it returns spidev0.0 in the listing you have the SPI device! Some...
by danjperron
Sun Dec 09, 2018 2:02 pm
Forum: Automation, sensing and robotics
Topic: Simple Relay Circuit
Replies: 13
Views: 2531

Re: Simple Relay Circuit

Hum I'm ok with SSR, but not with your schematic showing a SSR using triac optocoupler! There is a lot of type of SSR. Mostly two groups , the AC SSR and the DC SSR! You create schematic with AC SSR which is completely wrong! AC SSR are triac! Once a triac is activated it will stay ON until voltage ...
by danjperron
Sat Dec 08, 2018 1:40 am
Forum: General discussion
Topic: need to force IO
Replies: 4
Views: 182

Re: need to force IO

I made the code for python3 Run pipeA.py first and pipeB.py on two different console. P.S. I assume the pipeA read more often than pipeB. If it is not the case you should include a while loop until nothing is received into the isPWMLock() function. pipeA.py import os,time,sys pipe_name = '/run/lock/...
by danjperron
Fri Dec 07, 2018 1:19 pm
Forum: General discussion
Topic: Minimum and maximum operating temperature for raspberry pi 3
Replies: 10
Views: 298

Re: Minimum and maximum operating temperature for raspberry pi 3

I live in Canada and I got my Fist PI B version 1.0 running outside for 2 years. I got temperature from -28 Celsius to 30 Celsius without problem. One night at -28 Celsius My webcam freeze and I had to reboot the Pi . This is the only incident in 2 years. except from some power grid outage. I should...
by danjperron
Fri Dec 07, 2018 1:05 pm
Forum: General discussion
Topic: need to force IO
Replies: 4
Views: 182

Re: need to force IO

A - The best way will be to create a pipe and tell Program A that the program B want to take control of the PWM. Once the program B is done with it it should send a Pipe command again to release the control. B - Method A could be done using a simple file. Create a ramdisk folder, (tmpfs type), to sa...
by danjperron
Wed Dec 05, 2018 2:15 pm
Forum: Python
Topic: Using SPI on python
Replies: 18
Views: 365

Re: Using SPI on python

Ok from the C code I posted. Could you remove everything from the SPI GPIO, run my spitest and report the values. Then short together MISO and MOSI, at the rasberry Pi of course with nothing else, run spitest and report the values. The first report should all 00 or 0Xff the second test should be an ...
by danjperron
Tue Dec 04, 2018 3:15 pm
Forum: Python
Topic: Using SPI on python
Replies: 18
Views: 365

Re: Using SPI on python

the bcm2835 library uses direct access to the hardware. Maybe you have something wrong with the device driver. What is your /boot/config.txt ? whats is the result of ls -l /dev/spi* ? Which version of python are you using ? (python2 or python3) Did it fail on both python Maybe try this version of C ...
by danjperron
Mon Dec 03, 2018 5:32 pm
Forum: Python
Topic: Using SPI on python
Replies: 18
Views: 365

Re: Using SPI on python

What is your device and could you also put your C code also. We need to compare what you did.
by danjperron
Mon Dec 03, 2018 3:11 pm
Forum: Troubleshooting
Topic: How to get a 192 address rather than a 10 address in PiVPN
Replies: 23
Views: 1697

Re: How to get a 192 address rather than a 10 address in PiVPN

OK I reread some parts Using 192.168.254.64/26 for the LAN Tried changing default pool range from10.8.0.0/24 to 192.168.252.0/48 (I don't have very many remote users) Ok your lan address is limited to 64 addresses. 192.168.254.64/26 Is the DNS or all computer you try to connect to are inside the mas...
by danjperron
Mon Dec 03, 2018 2:56 pm
Forum: Troubleshooting
Topic: How to get a 192 address rather than a 10 address in PiVPN
Replies: 23
Views: 1697

Re: How to get a 192 address rather than a 10 address in PiVPN

Also,
1. I will never have over 200 vpn users
if you have 200 vpn users you really need 192.168.10.0/24.

192.168.10.0/26 will give you only 64 possible addresses.
by danjperron
Mon Dec 03, 2018 2:47 pm
Forum: Troubleshooting
Topic: How to get a 192 address rather than a 10 address in PiVPN
Replies: 23
Views: 1697

Re: How to get a 192 address rather than a 10 address in PiVPN

The OP does NOT want 192 addresses. He wants IP addresses which have 192 as the first number in the dotted quad. Wow completely misread the post :lol: :lol: :lol: Then you shouldn't use 192.168.1.0, 192.168.2.0 or 192.168.0.0 because they are often the local IP for routers. The user if it is connec...
by danjperron
Mon Dec 03, 2018 12:23 pm
Forum: Troubleshooting
Topic: How to get a 192 address rather than a 10 address in PiVPN
Replies: 23
Views: 1697

Re: How to get a 192 address rather than a 10 address in PiVPN

Now you are confusing me. You want 192 addresses minimum then it is 10.8.0.0/24 /26 will give you only 64 addresses possible. 10 spaces only mean that your are using the private IPV4 address 10.0.0.0 ... 10.255.255.255 I do have two openvpn systems which used the 10.8.0.0/24 addresses and I do not h...
by danjperron
Sun Dec 02, 2018 2:43 pm
Forum: Troubleshooting
Topic: How to get a 192 address rather than a 10 address in PiVPN
Replies: 23
Views: 1697

Re: How to get a 192 address rather than a 10 address in PiVPN

I thing that you are confuse with IP Range. number of bits for IPV4 is 32 so it is impossible to put a range over 32. Also /24 means that only the first 24 bits are checked . netmask => 255.255.255.0 /16 means that only the first 16 bits are checked. netmask => 255.255.0.0. You are using a subset of...
by danjperron
Wed Nov 28, 2018 12:16 pm
Forum: Networking and servers
Topic: wifi dongle going to sleep in anymethods
Replies: 19
Views: 436

Re: wifi dongle going to sleep in anymethods

i aded pinf ech minute to cron and add iw dev wlan0 set power_save off into /etc/rc.local Did you set the Pi to wait for connection on boot? If you put this on /etc/rc.local it is possible that the command is send before the wifi is set. sudo raspi-config, boot option, wait for network to boot! Thi...
by danjperron
Tue Nov 27, 2018 7:24 pm
Forum: Networking and servers
Topic: wifi dongle going to sleep in anymethods
Replies: 19
Views: 436

Re: wifi dongle going to sleep in anymethods

@rapidograf Where are the answers of all the questions ?
by danjperron
Mon Nov 26, 2018 7:23 pm
Forum: Networking and servers
Topic: wifi dongle going to sleep in anymethods
Replies: 19
Views: 436

Re: wifi dongle going to sleep in anymethods

Ok We don't know what you did or did not. Did you create the ping in the crontab using the IP of your router? Did you add the iw.... power_save off into /etc/rc.local or using delay in the root crontab with sleep command? sudo crontab -e @reboot sleep 30 && iw dev wlan0 set power_save off when you t...
by danjperron
Mon Nov 26, 2018 4:28 pm
Forum: Networking and servers
Topic: wifi dongle going to sleep in anymethods
Replies: 19
Views: 436

Re: wifi dongle going to sleep in anymethods

So if I understand you are able to ping from the raspberry Pi. Are you able to ping from another computer to the raspberry Pi using its IP address. Are you using IPV6 or IPV4 ? But when i run IP scanner on another machine i cant found Raspi in me home net. i can use web browser on Raspi but Raspi do...
by danjperron
Sun Nov 25, 2018 7:01 pm
Forum: Networking and servers
Topic: wifi dongle going to sleep in anymethods
Replies: 19
Views: 436

Re: wifi dongle going to sleep in anymethods

Did you try to add a ping every minutes to your router!

sudo crontab -e

Code: Select all

* * * * * ping -c 1 192.168.0.1 >/dev/null
by danjperron
Sat Nov 24, 2018 9:13 pm
Forum: General discussion
Topic: Nothing goes as we say in Quebec - NOOBS issue
Replies: 11
Views: 399

Re: Nothing goes as we say in Quebec

Hi Johny,

If you live around Montréal we have a club meeting every month about the Raspberry Pi. if you want to learn more the club is open to all.

Next meeting will be the 5 December. https://www.facebook.com/clubframboise


Daniel
by danjperron
Sun Nov 18, 2018 2:14 pm
Forum: Troubleshooting
Topic: I2C not working(Raspberry pi 3 B+)
Replies: 9
Views: 320

Re: I2C not working(Raspberry pi 3 B+)

Are you sure you have a Pi3Bplus ? could you post the result of cat /proc/cpuinfo | grep Revision Also, could you post your /boot/config.txt. Something odd because I2C-0 is not available anymore with PI3 because it is used internally. Normally the pcf8596 , if no solder pad for address are short, wi...
by danjperron
Sun Nov 18, 2018 4:58 am
Forum: Troubleshooting
Topic: I2C not working(Raspberry pi 3 B+)
Replies: 9
Views: 320

Re: I2C not working(Raspberry pi 3 B+)

I ran through the tutorial multiple times The Adafruit tutorial is quite old and the part to add stuff into /etc/modules is for wheezy . It is not for the newest O.S. which is stretch. Please removes what you did on /etc/modules and do the 'sudo raspi config'. LIke I told you on my first post. Rebo...
by danjperron
Sat Nov 17, 2018 8:55 pm
Forum: Troubleshooting
Topic: I2C not working(Raspberry pi 3 B+)
Replies: 9
Views: 320

Re: I2C not working(Raspberry pi 3 B+)

Did you enable the I2c? sudo raspi-config , interfacing options, i2c enable! if you check for i2c it should display [email protected]:~ $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- --...
by danjperron
Thu Nov 15, 2018 6:18 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: ADS1115 16bit ADC reading
Replies: 2
Views: 474

Re: ADS1115 16bit ADC reading

The ADS1115 is a 16 bits but with signed.

On single ends it is only a 15 bits.

If you get 26581 max it is because you are on 4.096V reference.


3.3V * ( 32767 / 4.096) = 26399. This is more or less what you got.

Please read the datasheet in details.
by danjperron
Mon Nov 12, 2018 12:37 am
Forum: Français
Topic: entre php et python ? y a quoi ?
Replies: 6
Views: 587

Re: entre php et python ? y a quoi ?

1 - Créer une base de données sudo msql -u root -p MariaDB [(none)]> create database capteur_db; 2 - Créer une table CREATE TABLE `capteur_db`.`capteur_tbl` ( `capteur_id` TINYINT NOT NULL , `date` DATETIME NOT NULL, `valeur` FLOAT NOT NULL , `valide` TINYINT NOT NULL ) ENGINE = InnoDB; 3- Créer des...
by danjperron
Sun Nov 11, 2018 11:40 pm
Forum: Troubleshooting
Topic: RFID w/ RPi2
Replies: 20
Views: 508

Re: RFID w/ RPi2

how is spidev better/spi?
- spidev already in raspbian.
- spidev is compatible with python3. This is enough for me.

My modified version also read 7 bytes ad 10 bytes mifare card,

Go to advanced search