Search found 4004 matches
- Tue Jul 05, 2022 4:25 pm
- Forum: MicroPython
- Topic: Use Pico as an I2C slave?
- Replies: 46
- Views: 12338
Re: Use Pico as an I2C slave?
That's like saying "GP0 and GP1 won't work, the pins are for SPI0.", but it works just fine because there's configuration going on with the registers that makes GP0 and GP1 work for I2C0 instead of SPI0. Nope! The ADC pins settings is outside the pad stuff. In theory you need to disable t...
- Tue Jul 05, 2022 2:11 pm
- Forum: MicroPython
- Topic: Use Pico as an I2C slave?
- Replies: 46
- Views: 12338
Re: Use Pico as an I2C slave?
Hi thelazymastermind,
Yes I2C-1 works but The problem with GP26 (pin 31) and GP27 (pin 32) is the analog ADC.
Not sure but I won't use theses pins because of that!.
Yes I2C-1 works but The problem with GP26 (pin 31) and GP27 (pin 32) is the analog ADC.
Not sure but I won't use theses pins because of that!.
- Wed Jun 29, 2022 12:58 pm
- Forum: MicroPython
- Topic: RS485 Board starts losing numerous packets Raspberry Pico
- Replies: 15
- Views: 446
Re: RS485 Board starts losing numerous packets Raspberry Pico
Maybe the way to be sure is to time between byte transmission. If the delay is too long reset the packet. Also is the data 0x2 and 0x3 only possible to start and end packet. I hope that they are not possible inside the packet. if your packet is always 80 bytes long you should include a byte counter ...
- Wed Jun 29, 2022 12:38 pm
- Forum: General discussion
- Topic: Air mouse
- Replies: 9
- Views: 350
Re: Air mouse
I second bjtheone! I'm using the K400 for years. Is more than 5 years old and the batteries are still the original. Very handy when you have more than one PI. Just remove the dongle and plug it into the Pi of your interest. I do have some bluetooth keyboard but it is complicate to sync them. isn't p...
- Tue Jun 28, 2022 7:51 pm
- Forum: Bare metal, Assembly language
- Topic: My 6000 line ARM C compiler sometimes beats gcc -O3
- Replies: 41
- Views: 1348
Re: My 6000 line ARM C compiler sometimes beats gcc -O3
Ok I fixed the problem by removing the libsquint.so library and include squint.o into mc-so. Now mc-so compile with gcc10.2.1 modification on Makefile $(BIN)-so: $(BIN).c $(PEEP).c $(VECHO) " CC+LD\t\t$@\n" $(Q)$(ARM_CC) -DSQUINT_SO $(CFLAGS) -c -fpic $(PEEP).c $(Q)$(ARM_CC) -DSQUINT_SO -g...
- Tue Jun 28, 2022 7:19 pm
- Forum: Bare metal, Assembly language
- Topic: My 6000 line ARM C compiler sometimes beats gcc -O3
- Replies: 41
- Views: 1348
Re: My 6000 line ARM C compiler sometimes beats gcc -O3
It will not work on the 64 bit OS yet. You have to be running 32 bit Buster. Nope it was 32bits (PI2) and (Pi4) but both using gcc10. Works fine on my Pi3 with gcc8.3 It looks like the -DSQUINT_SO compile option is not being used. It is crucial that is defined when compiling mc-so. DSQUINR_SO is se...
- Tue Jun 28, 2022 6:02 pm
- Forum: Bare metal, Assembly language
- Topic: My 6000 line ARM C compiler sometimes beats gcc -O3
- Replies: 41
- Views: 1348
Re: My 6000 line ARM C compiler sometimes beats gcc -O3
Thanks hippy
Ok I tried on my Pi3 which run buster with gcc 8.3 and it is working fine!
Yeah I'm using bullseye with gcc 10.2.1. its problably gcc which doesn't recognize the code in libsquint.so.
I'll check that
Code: Select all
That's Pi 3B (non-plus), 32-bit Buster, GCC 8.3.0
Yeah I'm using bullseye with gcc 10.2.1. its problably gcc which doesn't recognize the code in libsquint.so.
I'll check that
- Tue Jun 28, 2022 5:19 pm
- Forum: Bare metal, Assembly language
- Topic: My 6000 line ARM C compiler sometimes beats gcc -O3
- Replies: 41
- Views: 1348
Re: My 6000 line ARM C compiler sometimes beats gcc -O3
ok how to you compile mc-so. When I do make all or make mc-so or make check I got undefined reference to `squint_opt' I tried on Pi4 and Pi2. pi@PI2:~/Squint $ make all CC+LD mc CC+LD mc-native CC+LD squint CC+LD mc-so /usr/bin/ld: /tmp/cc2SsX1N.o: in function `jit': /home/pi/Squint/mc.c:2428: undef...
- Tue Jun 28, 2022 3:21 pm
- Forum: General
- Topic: Use Pico to measure voltage of 3.7 volt battery
- Replies: 13
- Views: 385
Re: Use Pico to measure voltage of 3.7 volt battery
but I don't know if it can get 5 volt as input to measure. No it can't but you could use a resistor divider to read voltage above 3.3V https://ohmslawcalculator.com/voltage-divider-calculator Resistor need to be high enough to not draw too much current and Low enough to minimize the internal resist...
- Wed Jun 22, 2022 5:23 pm
- Forum: General discussion
- Topic: mosquitto config file setting
- Replies: 4
- Views: 199
Re: mosquitto config file setting
http://www.steves-internet-guide.com/mqtt-username-password-example/ 1 - create a passord for each client 2- sudo nano /etc/mosquitto/client_password.txt ex: client1:12345 3- encrypt the file. sudo mosquitto_passwd -U /etc/mosquitto/client_password.txt 4- modify the config. mosquitto.conf or a file...
- Mon Jun 20, 2022 2:04 am
- Forum: Automation, sensing and robotics
- Topic: Multiple wireless low power temperature sensors
- Replies: 30
- Views: 1014
Re: Multiple wireless low power temperature sensors
Just wonder, Using the ESP32 or the ESP8266 what is the power comsumption on sleep mode, wakeup and wifi or bluetooth transmit? I did choose the arduino pro mini 8Mhz with the nRF24L01for this reason since the handling of the wifi and bluetooth was quite long. Using the nRF24L01 I was able to wake u...
- Fri Jun 17, 2022 4:58 pm
- Forum: General
- Topic: Need to Read PWM ±2.5V
- Replies: 18
- Views: 808
Re: Need to Read PWM ±2.5V
I'll be curious to see what the oscilloscope read out is at 100%.when it gets to 100%, it drops to 1 or 2.
Is it still +/- 2.5V with the middle at 0V. Or the full waveform shift down because you have a capacitor in series internally.
- Thu Jun 16, 2022 5:52 pm
- Forum: Automation, sensing and robotics
- Topic: Multiple wireless low power temperature sensors
- Replies: 30
- Views: 1014
Re: Multiple wireless low power temperature sensors
What kind of transmission is nRF24L01 ? It's not wifi but a regular radio transition which I assume uses less energy than wifi. 30 meters is plenty enough for me. Do you have any recommendations on what model of the transmitter to get and where? I'm using cheap one from aliexpress but they are avai...
- Wed Jun 15, 2022 7:49 pm
- Forum: Français
- Topic: Dimensiosn solaire raspberry pi
- Replies: 14
- Views: 899
Re: Dimensiosn solaire raspberry pi
Motion eye est un logiciel. C'est a l'utilisateur d'utiliser ce qui lui tente comme éclairage.motion eye qui est très bien empaqueté
Mais nous fabulons. Il faudra plus d'informations pour préciser ce que DJAlexOfficiel veut faire!
- Wed Jun 15, 2022 7:02 pm
- Forum: Français
- Topic: Dimensiosn solaire raspberry pi
- Replies: 14
- Views: 899
Re: Dimensiosn solaire raspberry pi
La camera ne doit pas poser de problème, par contre, c'est le projecteur IR qui a l'air ttrès glouton: selon la liste du materiel https://www.printables.com/fr/model/182 ... otioneyeos Le post original n'indique pas ce projecteur ni même de diode à infrarouge. Qu'elle va être la vue de la caméra. E...
- Wed Jun 15, 2022 3:01 pm
- Forum: Français
- Topic: Dimensiosn solaire raspberry pi
- Replies: 14
- Views: 899
Re: Dimensiosn solaire raspberry pi
J'utilisais un panneau de 10W mais en hivers ce n'était pas assez. J'ai donc ajouté un panneau de 10W et tout l'hivers je n'ai pas eu de problème. Ok je vis au Québec mais la latitude est de 45 degrée ce qui est moins que Paris! Cependant je n'avais pas la même utilisation puisque mon PizéroW enregi...
- Tue Jun 14, 2022 5:10 pm
- Forum: Automation, sensing and robotics
- Topic: Multiple wireless low power temperature sensors
- Replies: 30
- Views: 1014
Re: Multiple wireless low power temperature sensors
I did that 7 years ago with arduino mini 3.3V and a raspberry Pi. Still working fine! I used this for temperature and humidity on my garden. (ds18b20,DHT22,humidity sensors).etc. https://forums.raspberrypi.com/viewtopic.php?p=720838#p720838 https://github.com/danjperron/nRF24L01_With_Sensor Check th...
- Sat Jun 11, 2022 10:03 pm
- Forum: General
- Topic: Need to Read PWM ±2.5V
- Replies: 18
- Views: 808
Re: Need to Read PWM ±2.5V
This is effectively half bridge that is inverted and amplified to 3.3V? This could struggle with sine wave? Should probably only be used for square waves? This is not an issue since PWM are square wave anyway! From the original waveform. it looks like the output is from a PNP transistor with a very...
- Fri Jun 10, 2022 3:35 pm
- Forum: General
- Topic: Need to Read PWM ±2.5V
- Replies: 18
- Views: 808
Re: Need to Read PWM ±2.5V
The falling edge is very slow so the measured duty cycle will depend greatly on the actual voltage which is to be used by the following circuitry to mean a transition. What is that voltage? Is your signal connected ? try to add a small resistor load to increase the falling time. Did you try to put ...
- Fri Jun 10, 2022 2:04 pm
- Forum: General
- Topic: Need to Read PWM ±2.5V
- Replies: 18
- Views: 808
- Wed Jun 01, 2022 8:11 pm
- Forum: Automation, sensing and robotics
- Topic: How to set specific values on gpio for PWM?
- Replies: 4
- Views: 622
Re: How to set specific values on gpio for PWM?
I want to run this code for some specific values and some seconds. For example, I want to set the 1600μs for both wheels to GPIO 23 and 24 and run it for 1 second. As soon as one second has passed, it automatically goes to 1500μs to stop. I did look at your code and isn't what you ask at all. You h...
- Tue May 31, 2022 3:24 pm
- Forum: General
- Topic: CAN bus for PICO
- Replies: 2
- Views: 281
Re: CAN bus for PICO
You should look at that forum. They have some schematic to connect the mcp2515 to the Pi. This should be the same technic for the Pico except for the software of course https://forums.raspberrypi.com/viewtopic.php?t=141052&hilit=mcp2551 In reality only two pins that you have to worry about. SO a...
- Fri May 27, 2022 12:19 pm
- Forum: General discussion
- Topic: Cyclic measurement
- Replies: 5
- Views: 313
Re: Cyclic measurement
if your cyclic is more than one minute use crontab. This is what i'm using to record my temperature and humidity sensor. I was using loop but if something appends in the loop the script stop, it stops!! Using a simple script that read sensors, store info,do something about the values and stop was be...
- Thu May 26, 2022 1:09 pm
- Forum: Python
- Topic: Testing mqtt communication
- Replies: 13
- Views: 688
Re: Testing mqtt communication
ok your pc is the broker. Weird!!! This mean that your PC needs to be always on because is a server. You publish and subscribe from a client then nothing to do with the PC. Your Pi is the client then install mosquitto-clients to your pi and now you are able to publish and subscribe. The only thing t...
- Thu May 26, 2022 11:56 am
- Forum: Python
- Topic: Testing mqtt communication
- Replies: 13
- Views: 688
Re: Testing mqtt communication
mosquitto_sub and mosquitto_pub are parts of mosquitto_clients. If you didn't install it you don't have it. it was on my previous post. sudo apt install mosquitto-clients ok you are using windows10! Hum I never use windows on raspberry pi. mosquitto_pub ans _sub are to be used on the PI using linux.