Go to advanced search

by danjperron
Tue Dec 10, 2019 2:05 am
Forum: General discussion
Topic: Problem with serial write
Replies: 2
Views: 114

Re: Problem with serial write

On PI3 the /dev/ttyAMA0 is the bluetooth. The GPIO serial is /dev/ttyS0.

Better use the link which is /dev/serial0. Using the link it will work with old and new PI.
by danjperron
Sun Dec 08, 2019 2:12 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Connecting rs485 device to RPi
Replies: 1
Views: 110

Re: Connecting rs485 device to RPi

You need a resistor divider on RO to reduce 5V signal to 3.3V signal.

Pease check the two links in this post
https://www.raspberrypi.org/forums/view ... 5#p1482792
by danjperron
Wed Nov 27, 2019 8:40 pm
Forum: Automation, sensing and robotics
Topic: Zigbee home automation on Pi Zero W
Replies: 8
Views: 14047

Re: Zigbee home automation on Pi Zero W

I'm still confused about the answer to the OP's question. Is it possible to implement Zigbee on a Rasp Pi Zero W with no additional hardware, or not? If not, what is the most cost effective hardware that I need to add? You need at least a Zigbee module to connect directly through the Pizero serial ...
by danjperron
Wed Nov 27, 2019 8:21 pm
Forum: Troubleshooting
Topic: RS485 and RTS support in Raspberry Pi 4
Replies: 6
Views: 171

Re: RS485 and RTS support in Raspberry Pi 4

In the past, I have used the device tree RS485 options on another CPU (Atmel SAM A5) and it worked automatically without any special program. You are correct a lot of those chips are connected directly to the RS-232 which has the signal inverted (TTL 0 = +(12/15V), TTL 1 = -(12/15V). The only thing...
by danjperron
Wed Nov 27, 2019 7:00 pm
Forum: Troubleshooting
Topic: RS485 and RTS support in Raspberry Pi 4
Replies: 6
Views: 171

Re: RS485 and RTS support in Raspberry Pi 4

Hi Batt61, If I understand you did an overlay to enable RTS. You have link to Hiassoft github and it is more or less the same than yours. But enable RTS to be available is just the first part. The other part is to use it. I don't see in your comment the application you are using to communicate via r...
by danjperron
Tue Nov 26, 2019 8:37 pm
Forum: Troubleshooting
Topic: i2c buffer size increase
Replies: 8
Views: 161

Re: i2c buffer size increase

I though that the hardware, because of the implementation with the SMBUS, limits the I2C to be 32 bytes only which is in reality 31 bytes of data since the first byte is the address and the R/W bit. I did try more than that and it always failed. I think that it is an hardware limitation.
by danjperron
Tue Nov 26, 2019 7:48 pm
Forum: C/C++
Topic: Problem using Timer for UART Communication
Replies: 4
Views: 174

Re: Problem using Timer for UART Communication

Hum, I test your code looks like is working fine except, 1 - Bad thing to have an loop with no delay inside. cpu usage was 99%. while(1) { sleep(1); } 2 - Are you using an USB serial dongle /dev/ttyACM0? I use one of my USB dongle which was /dev/ttyUSB0 and connect the device to my pc with putty in ...
by danjperron
Sat Nov 23, 2019 5:03 am
Forum: Français
Topic: problème avec subprocess pour lire une vidéo
Replies: 8
Views: 268

Re: problème avec subprocess pour lire une vidéo

Salut creapaint,


J'ai essayer l'exemple corrigé avec un gamepad et ça fonctionne sauf que la façon que ton script est fait le vidéo s'éteint lorsque tu appuies sur le gamepad mais il reste dans la boucle.


Daniel
by danjperron
Fri Nov 22, 2019 7:04 pm
Forum: Automation, sensing and robotics
Topic: UART servo controller
Replies: 4
Views: 189

Re: UART servo controller

Just add an 3V to 5V I2c adapter.

https://www.robotshop.com/community/blo ... ces-on-i2c


I was using a pololu serial servo board and it was working fine. My board is very similar to yours.
https://www.pololu.com/product/207
by danjperron
Fri Nov 22, 2019 6:34 pm
Forum: Français
Topic: problème avec subprocess pour lire une vidéo
Replies: 8
Views: 268

Re: problème avec subprocess pour lire une vidéo

Ok j'ai corrigé les paramètres pour les pipes et j'ai vérifié en utilisant un GPIO. Ce soir je vais utiliser un manette de jeu . Selon ton code tu ne sors pas du programme mais tu veux fermer le vidéo. Est-ce exactement ce que tu veux? Voici mon code qui utilise seulement le GPIO21 . Si le GPIO 21 t...
by danjperron
Fri Nov 22, 2019 4:28 pm
Forum: Français
Topic: problème avec subprocess pour lire une vidéo
Replies: 8
Views: 268

Re: problème avec subprocess pour lire une vidéo

import pygame import os from subprocess import* from pygame import* import time #from moviepy.editor import* #import moviepy.video.fx.all as vfx #import RPI.GPIO as GPIO pygame.init() ecran = pygame.display.set_mode((1920, 1080)) pygame.display.set_caption("Hololine") manette = pygame.joystick.Joys...
by danjperron
Fri Nov 22, 2019 3:49 pm
Forum: Français
Topic: problème avec subprocess pour lire une vidéo
Replies: 8
Views: 268

Re: problème avec subprocess pour lire une vidéo

Bonjour Creapaint,

Le meilleur moyen est de faire un tuyau(pipe) pour les entrées/sorties.


Regarde ma version avec une carte RFID pour changer les vidéos.

https://github.com/danjperron/rc522_rea ... rOnRFID.py
by danjperron
Fri Nov 22, 2019 3:43 pm
Forum: Troubleshooting
Topic: Display-O-Tron HAT and RC522 RFID help
Replies: 3
Views: 98

Re: Display-O-Tron HAT and RC522 RFID help

Good chance that the Display use SPI1 CS0 and CS1

Why not using SPI2 or SPI3 instead for the RC522 reader

Check /boot/overlays/README on your PI3.
by danjperron
Tue Nov 19, 2019 5:09 pm
Forum: Advanced users
Topic: Control power from LiPo to Pi via external MCU
Replies: 32
Views: 1771

Re: Control power from LiPo to Pi via external MCU

I already tried with a step up with EN pin (Pimoroni LiPo shim) and it was a totally waste of money, because it doesn't even start to boot and I can ear a noise coming from the Pimoroni chip. Yes I'm sure that the current flow from the coil is the reason that the Pi didn't even boot. What about two...
by danjperron
Tue Nov 19, 2019 3:42 pm
Forum: Advanced users
Topic: Control power from LiPo to Pi via external MCU
Replies: 32
Views: 1771

Re: Control power from LiPo to Pi via external MCU

Why not using a sdb628 step up and use the Enable pin to kill the battery. https://www.datasheet4u.com/datasheet-pdf/SHOUDING/SDB628/pdf.php?id=1088422 https://www.dx.com/p/37v-to-5v-9v-2a-step-up-boost-module-18650-lithium-battery-charging-discharge-integrated-module-for-multimeter-2708198.html#.Xd...
by danjperron
Sun Nov 17, 2019 1:58 pm
Forum: Python
Topic: ctrl-c in python (the ^C being displayed specifically)
Replies: 4
Views: 171

Re: ctrl-c in python (the ^C being displayed specifically)

A simple method will be to backspace to remove the ^C

Code: Select all

try:
    print("\n Hello")
    input(" Pause ... ")
except KeyboardInterrupt:
    print(chr(8)+chr(8),end="") 
by danjperron
Thu Nov 14, 2019 5:08 pm
Forum: Advanced users
Topic: Is it possible for RaspberryPi 3 B+ to power a 6V device
Replies: 14
Views: 546

Re: Is it possible for RaspberryPi 3 B+ to power a 6V device

Why not using a simple step down DC/DC regulator like the MP1584. The enable Pin could be directly connected to the GPIO on the PI and the output could be set exactly at 6V. The enable threshold is ~1.5V. This perfect for the PI. https://www.dx.com/p/dc-4-1-26v-to-0-8-20v-mp1584-dc-dc-adjustable-buc...
by danjperron
Thu Oct 24, 2019 3:14 pm
Forum: Troubleshooting
Topic: Intermittent Corrupted Character LCD Output
Replies: 5
Views: 361

Re: Intermittent Corrupted Character LCD Output

Static electricity!!!! you got your answer!!!!! It is a thing. CMOS components at low voltage like the PI aren't immune to it! Is your system inside a metal box? Those wires will capture any kind of electric field around them. Try to put your display inside an metal box and put a ferrite donuts at y...
by danjperron
Sun Oct 13, 2019 1:25 pm
Forum: General discussion
Topic: How to use RS485 Shield with Raspberry Pi
Replies: 19
Views: 915

Re: How to use RS485 Shield with Raspberry Pi

This is info about rs-485 devices I tested. It is also about modbus and a small device Indid using modbus. https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=75189&hilit=modbus You still want to know the link about your shield and what is the purpose of using rs-485. It is easier to help you if...
by danjperron
Thu Oct 10, 2019 10:15 pm
Forum: General discussion
Topic: Help me please,my due date is next week.....
Replies: 29
Views: 1694

Re: Help me please,my due date is next week.....

Step 2 ist wrong: if it is NOT wet...

Step 2.5 is missing: turn the pump off.
Good catch.

At least the code in python was ok!
by danjperron
Thu Oct 10, 2019 8:34 pm
Forum: General discussion
Topic: Help me please,my due date is next week.....
Replies: 29
Views: 1694

Re: Help me please,my due date is next week.....

Gordon I don't think it is a good idea to start and stop a pump in 1 second interval.
by danjperron
Thu Oct 10, 2019 1:26 pm
Forum: General discussion
Topic: Help me please,my due date is next week.....
Replies: 29
Views: 1694

Re: Help me please,my due date is next week.....

I very much doubt the dampness of the soil will change very fast so you might be better just using a simple while try loop to check for the moisture sensor to go dry and then if its dry , turn the pump on and if wet turn the pump off. I completely agree with pcmambob! First you should try to figure...
by danjperron
Wed Oct 09, 2019 10:22 pm
Forum: Automation, sensing and robotics
Topic: A MPU6050 based RTA app
Replies: 13
Views: 3360

Re: A MPU6050 based RTA app

An I2C clock at 100KHZ can't read all the data of the MPU6050 using a rate of 1000 samples/sec. start bit + I2c address + 1 bit for r/W + 14 byte + 15 acknowledge + stop bit = 137 clock => 100KHz / 137 = 730 packets read / sec. The mpu6050 is rated for 400KHz clock! How the PI0 behaves when the i2c ...
by danjperron
Tue Oct 08, 2019 10:54 pm
Forum: Automation, sensing and robotics
Topic: A MPU6050 based RTA app
Replies: 13
Views: 3360

Re: A MPU6050 based RTA app

Wow pretty cool software.

I look into your code and I was surprise that some of your code was reference to one of my own.

Keep the good work! I'm impress!

Daniel Perron

Go to advanced search