Go to advanced search

by david_1234
Thu Jan 02, 2020 12:57 pm
Forum: Beginners
Topic: UART problem
Replies: 8
Views: 600

Re: UART problem

This setting will be only for PI4 - if I will create a copy it will be to another PI4 I still can't understand what you are saying , and what is the reason I have this problem , pi won't boot when PIN28 is connected to serial tx sensor? now it's working when I'm using /dev/serial1 dtoverlay=i2c3 dto...
by david_1234
Thu Jan 02, 2020 9:38 am
Forum: Beginners
Topic: UART problem
Replies: 8
Views: 600

UART problem

Hello , Using PI4 Buster OS I need to have 2 serial ports I'm using serial0 without any problem my problem is the 2nd serial .... When I use UART2 which is PIN28 I can read the data from the sensor - everything is working great in the python code I'm opening /dev/serial1. But when I reboot the PI - ...
by david_1234
Thu Jan 02, 2020 8:45 am
Forum: Beginners
Topic: create 2 serial ports?
Replies: 2
Views: 266

Re: create 2 serial ports?

Didn't understand what you want to say , After seraching online I saw that I jsut need to add in /boot/config.txt this line: enable_uart=1 dtoverlay=uart2 then to use this setting in python code ser = serial.Serial( port='/dev/serial1', baudrate = 9600, parity=serial.PARITY_NONE, stopbits=serial.STO...
by david_1234
Wed Jan 01, 2020 1:49 pm
Forum: Beginners
Topic: create 2 serial ports?
Replies: 2
Views: 266

create 2 serial ports?

Hello , Using PI4 buster currentlly I'm using pin8 and pin 10 to read data from Arduino (which is Serial0) I need to read another Arduino , so I need to connect it to another serial port when I look at the pinout I see I can use pins 27&28 as Tx2\Rx2 do I need to change something in the condig file?...
by david_1234
Wed Jan 01, 2020 11:16 am
Forum: General discussion
Topic: pi4 buster get stuck on "apt-update"
Replies: 7
Views: 490

Re: pi4 buster get stuck on "apt-update"

wait more then 2 hours? ?

how to change mirror?
by david_1234
Wed Jan 01, 2020 10:47 am
Forum: General discussion
Topic: pi4 buster get stuck on "apt-update"
Replies: 7
Views: 490

pi4 buster get stuck on "apt-update"

Starnge issue I can't upgrade the pi get stuck on 18% (like this for 2 hours now) Get:1 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libwebkit2gtk-4.0-37 armhf 2.26.2-1~deb10+1+rpi1 [9,934 kB] Get:1 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libwebkit2gtk-4.0-37 arm...
by david_1234
Tue Dec 31, 2019 2:53 pm
Forum: Python
Topic: Read serial show me 2 reading at the same time
Replies: 0
Views: 168

Read serial show me 2 reading at the same time

Hello , I have a script that read data from serial sensor the data is sent in BR 9600 i'm waiting 500ms from each reading - so I'm getting 2 reading at one time how can I avoid this ? this is the code : import serial import time ser = serial.Serial( port='/dev/serial0', baudrate = 9600, parity=seria...
by david_1234
Tue Dec 31, 2019 2:08 pm
Forum: Beginners
Topic: read data from Arduino
Replies: 14
Views: 617

Re: read data from Arduino

it doesn't
no metter I look in all the PDF I have found - didn't say it have a 5V pullups

this is the device I have bought

https://www.adafruit.com/product/904


so you say maybe try to connet it using no pull-ups and 3.3V only?
meaning wire to wire , without any pull-ups\divider ?

Thanks ,
by david_1234
Tue Dec 31, 2019 11:21 am
Forum: Beginners
Topic: read data from Arduino
Replies: 14
Views: 617

Re: read data from Arduino

I'm sorry butI didn't understand the all post so let me show you what I did understand : I think it unlikely that using your sensor with pull-ups to 5V would have stopped I2C working on the Pi I used 5V pull-ups and everything work for 2 hours , then stop . It would likely eventually damage the GPIO...
by david_1234
Tue Dec 31, 2019 9:26 am
Forum: Beginners
Topic: read data from Arduino
Replies: 14
Views: 617

Re: read data from Arduino

me again :-) could this be the reason why my PI won't work with the INA219 ? if I have operated the INA219 with 5V then the SCL\SDA will also work on 5V? maybe this was my problem ? also will it be to work on the same side and connect the INA219 to the pi using the volt divider also? or am I talking...
by david_1234
Tue Dec 31, 2019 9:10 am
Forum: Beginners
Topic: read data from Arduino
Replies: 14
Views: 617

Re: read data from Arduino

OK , didn't know this .
I thought 5V is also OK

I will add the divider

Thanks !
by david_1234
Tue Dec 31, 2019 8:56 am
Forum: Beginners
Topic: read data from Arduino
Replies: 14
Views: 617

Re: read data from Arduino

OK ,
I have try to see what I'm getting without the divider
and it's seem to work
I have connected
ARD PI
8 --> 10
9 --> 8
gnd-->gnd

and when I'm sending

Code: Select all

SendToPI.print(current_mA);
I get the data on my PI
so maybe I don't need it?

Thank you ,
by david_1234
Tue Dec 31, 2019 8:07 am
Forum: Beginners
Topic: read data from Arduino
Replies: 14
Views: 617

Re: read data from Arduino

OK - good tho know it's doable :-) The Arduino is 5V so I have 2 questions,please: 1. where do I need to put the divider? can you show me? and also which values do I need for the 2 resistors? I forget the formula.... 2. I don't need to use any convertor at all(to check the pi is working with my comp...
by david_1234
Mon Dec 30, 2019 2:53 pm
Forum: Beginners
Topic: read data from Arduino
Replies: 14
Views: 617

read data from Arduino

Hello , is there any what to connect Arduino to PI ? not by USB only with 2 or 3 wires(Tx,RX,GND)? this is the logic of my question : I need to read my INA219 sensor , while it connect to a computer that works on 24VDC 300mA(MAX). no metter what I did - couldn't make it work on PI(try to use 3.3K\4....
by david_1234
Thu Dec 26, 2019 3:22 pm
Forum: General discussion
Topic: PI get stuck after boot - showing only error messages
Replies: 19
Views: 850

Re: PI get stuck after boot - showing only error messages

yes , it's works
I have dupicate 2 SD card , boot up without any problem

Thanks !
by david_1234
Thu Dec 26, 2019 3:07 pm
Forum: General discussion
Topic: Create a simple web page on apache2 showing sensor ?
Replies: 0
Views: 123

Create a simple web page on apache2 showing sensor ?

Hello , I want to know if I can do this: I have a working PI that run zonminder using apache2 server I understand I can create antoher webpage on the server called tempurture.html(for example) so I wil be able to enter http://10.0.0.100/tempurture.html - to see my temp sensor http://10.0.0.100/zm - ...
by david_1234
Thu Dec 26, 2019 1:31 pm
Forum: General discussion
Topic: unabel to save PI image for backup&restore
Replies: 8
Views: 505

Re: unabel to save PI image for backup&restore

I will try this,

Thanks!
by david_1234
Wed Dec 25, 2019 10:53 am
Forum: General discussion
Topic: unabel to save PI image for backup&restore
Replies: 8
Views: 505

Re: unabel to save PI image for backup&restore

so how can I make an image of working system and duplicate it ?
by david_1234
Wed Dec 25, 2019 10:15 am
Forum: General discussion
Topic: PI get stuck after boot - showing only error messages
Replies: 19
Views: 850

Re: PI get stuck after boot - showing only error messages

OK . I will do this another somehow related question : I have another working p3i and I want to make a backup and also install the same configuration on 4 more pi3. I created a backup on 16GB Disk On Key using "SD Card Copier" , I see it have many files inside , what do I need to do now if I want to...
by david_1234
Wed Dec 25, 2019 9:18 am
Forum: General discussion
Topic: PI get stuck after boot - showing only error messages
Replies: 19
Views: 850

Re: PI get stuck after boot - showing only error messages

so the best solution for me will be to take the zonemonder setting and reinstall the pi with a fresh]new SD card?
by david_1234
Wed Dec 25, 2019 8:53 am
Forum: General discussion
Topic: unabel to save PI image for backup&restore
Replies: 8
Views: 505

Re: unabel to save PI image for backup&restore

I did what you told me :
copy from a working pi into external DOK, then copy all of it in to my computer for backup.( I have all kind of files inside )
with which program I need to use now to make a new SD card with the backup?

Thanks ,
by david_1234
Wed Dec 25, 2019 8:52 am
Forum: General discussion
Topic: PI get stuck after boot - showing only error messages
Replies: 19
Views: 850

Re: PI get stuck after boot - showing only error messages

I wrote this in the wrong post I'm fixing it now .... sorry I have check the log file and see there was a problem in the zonminder service after it update to version 1.30.4 when I turn off the zonminder service , everything start to work . so I will install zonminder again . but now I don;t seem to ...
by david_1234
Wed Dec 25, 2019 8:39 am
Forum: General discussion
Topic: PI get stuck after boot - showing only error messages
Replies: 19
Views: 850

Re: PI get stuck after boot - showing only error messages

I did what you told me :
copy from the pi into external DOK, then copy all of it in to my computer for backup.
with which program I need to use now to make a new SD card with the backup?

Thanks ,
by david_1234
Tue Dec 24, 2019 7:21 pm
Forum: General discussion
Topic: PI get stuck after boot - showing only error messages
Replies: 19
Views: 850

Re: PI get stuck after boot - showing only error messages

I did what you told me this is what I have now after reboot pi@raspberrypi:/var/log $ df -h Filesystem Size Used Avail Use% Mounted on /dev/root 15G 7.8G 6.2G 56% / devtmpfs 459M 0 459M 0% /dev tmpfs 464M 0 464M 0% /dev/shm tmpfs 464M 13M 451M 3% /run tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 464M 0 4...

Go to advanced search