Go to advanced search

by david_1234
Sun Feb 16, 2020 10:05 am
Forum: Beginners
Topic: can I get signal in DB from microphone using usb sound card?
Replies: 7
Views: 199

Re: can I get signal in DB from microphone using usb sound card?

I think you over think what I want to do ....

I just want to read the signal from the MIC and know how much DB is it

can I do this? or it's to complicated?

Thanks,
by david_1234
Mon Feb 10, 2020 2:06 pm
Forum: Beginners
Topic: can I get signal in DB from microphone using usb sound card?
Replies: 7
Views: 199

Re: can I get signal in DB from microphone using usb sound card?

It could be relative

and what do you need by this:
And do you want flat or weighted values?
I want the resault the be simller to the android app "Sound Meter" - so the code can be "trusted"
if I will ger 54.6 in the PI and 55 in the app - it's ok

Thanks ,
by david_1234
Mon Feb 10, 2020 1:49 pm
Forum: Beginners
Topic: can I get signal in DB from microphone using usb sound card?
Replies: 7
Views: 199

can I get signal in DB from microphone using usb sound card?

Hello , I'm using a USB sound card that have 2 connections : input\output I have connected a microphone to the input , and I want to know what is the noise level while I open the mic. is there any way to do this? I only found this https://github.com/mepster/wensn but how do I do the same think to a ...
by david_1234
Mon Feb 10, 2020 10:45 am
Forum: Beginners
Topic: how to control volume output when using external sound card?
Replies: 1
Views: 46

Re: how to control volume output when using external sound card?

found it

Code: Select all

 mpg123 -o alsa:hw:1,0 -f -2000 /home/pi/Documents/test.mp3

the maximum value of the amplitude is 100% which coressponds to 32768

got it from here
https://unix.stackexchange.com/question ... -of-mpg123

maybe it will help anyone alse also....
by david_1234
Mon Feb 10, 2020 10:39 am
Forum: Beginners
Topic: how to control volume output when using external sound card?
Replies: 1
Views: 46

how to control volume output when using external sound card?

Hello , I'm using a USB sound card on my pi wanted to know how can I chagne the output volume of it ? I haver try to use this command amixer set PCM -- 85% but it doesn't change the volume in order to play file I use this command in python TestSound = "/home/pi/Documents/test.mp3" os.system("mpg123 ...
by david_1234
Mon Feb 10, 2020 10:35 am
Forum: Staffroom, classroom and projects
Topic: Sound level meter
Replies: 5
Views: 196

Re: Sound level meter

by david_1234
Sun Feb 09, 2020 12:48 pm
Forum: Staffroom, classroom and projects
Topic: Sound level meter
Replies: 5
Views: 196

Sound level meter

Hello . I want to build an app that will measure the sound level in the room I only found how to do it using Arduino https://www.hackster.io/Skyphoxx/sound-detector-with-visual-alerts-3997ab is there any guide to how to do it in PI with python maybe? I know the circuit can be the same but maybe ther...
by david_1234
Sun Jan 26, 2020 1:59 pm
Forum: Troubleshooting
Topic: can't reach PI using VNC after noraml update
Replies: 5
Views: 166

Re: can't reach PI using VNC after noraml update

Didn't know this

Thanks you so much - it help and now it's working
by david_1234
Sun Jan 26, 2020 1:52 pm
Forum: Troubleshooting
Topic: can't reach PI using VNC after noraml update
Replies: 5
Views: 166

Re: can't reach PI using VNC after noraml update

I'm trying it now ,
so when do I use "update" and when I use "Full-update"?
up until now I didn't now this command ....

Thanks ,
by david_1234
Sun Jan 26, 2020 1:41 pm
Forum: Troubleshooting
Topic: can't reach PI using VNC after noraml update
Replies: 5
Views: 166

can't reach PI using VNC after noraml update

Hello , I have a working PI 4 buster worked for 3 months now today I run sudo apt-get update sudo apt-get upgrade told me I need to reboot when finish now I can't enter VNC ,and I don''t get any display on the screen. why? can only enter using SSH what went wrong ? systemctl status vncserver-x11-ser...
by david_1234
Tue Jan 07, 2020 1:49 pm
Forum: Beginners
Topic: read data from Arduino
Replies: 14
Views: 429

Re: read data from Arduino

One last question so I will be sure I understand (and avoid any other electric problems): when I use a I2C device that power from 3.3V the SDA\SCL lines will also work on 3.3V? so if my "Other side" can read i2c device only from 3.3V it will be OK?(like PI for example) in that case I won't need any ...
by david_1234
Sun Jan 05, 2020 11:05 am
Forum: Beginners
Topic: UART problem
Replies: 8
Views: 411

Re: UART problem

The data is from Arduino ,
what does it matter?
it something in the pi config , no?
by david_1234
Thu Jan 02, 2020 1:44 pm
Forum: Beginners
Topic: UART problem
Replies: 8
Views: 411

Re: UART problem

No no something is not good , and I don't know what happand this is the config file dtparam=spi=on dtoverlay=mcp2515-can0,oscillator=8000000,interrupt=12 dtoverlay=spi-bcm2835-overlay dtparam=audio=on [pi4] # Enable DRM VC4 V3D driver on top of the dispmanx display stack dtoverlay=vc4-fkms-v3d max_f...
by david_1234
Thu Jan 02, 2020 1:32 pm
Forum: Beginners
Topic: UART problem
Replies: 8
Views: 411

Re: UART problem

this is a good and important information ! - Thanks! so If I only use SPI,UART protocols is this all I have to config in /boot/config.txt? dtparam=spi=on dtoverlay=mcp2515-can0,oscillator=8000000,interrupt=12 dtoverlay=spi-bcm2835-overlay disable_splash=1 enable_uart=1 dtoverlay=uart5 [pi4] # Enable...
by david_1234
Thu Jan 02, 2020 1:04 pm
Forum: General discussion
Topic: pi4 buster get stuck on "apt-update"
Replies: 7
Views: 375

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

I guess there was a problem or something yesterday
I have try now (without changing anything) nad it update OK

stange ,

But thank you!
by david_1234
Thu Jan 02, 2020 12:57 pm
Forum: Beginners
Topic: UART problem
Replies: 8
Views: 411

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

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

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

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

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

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

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

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

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

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...

Go to advanced search