Go to advanced search

by California
Mon Nov 15, 2021 6:29 am
Forum: Raspberry Pi OS
Topic: Update of PI OS failed
Replies: 10
Views: 776

Re: Update of PI OS failed

Smaller desctop version of Pi OS somehow went through without errors ...

Thanks for respond

Regards, Vlado
by California
Fri Nov 12, 2021 4:59 pm
Forum: Raspberry Pi OS
Topic: Update of PI OS failed
Replies: 10
Views: 776

Re: Update of PI OS failed

Just did one quick installation. SD card 32GB (Toshiba). Locale default - no change of the language, skip wi-fi, skip update. Reboote - ok, manually update result below: pi@raspberrypi:~ $ sudo apt-get update Get:1 http://archive.raspberrypi.org/debian bullseye InRelease [23.5 kB] Get:2 http://raspb...
by California
Fri Nov 12, 2021 3:56 pm
Forum: Raspberry Pi OS
Topic: Update of PI OS failed
Replies: 10
Views: 776

Re: Update of PI OS failed

Raspberry Pi OS with desktop and recommended software was installed in both cases, and no network problems for sure.
It was connected to network through wi-fi also (with first SD card) when wizard came to that point, but everything frozen when update was in progres ...
by California
Fri Nov 12, 2021 2:57 pm
Forum: Raspberry Pi OS
Topic: Update of PI OS failed
Replies: 10
Views: 776

Re: Update of PI OS failed

Yes, Bullseye on RPi3 B+
by California
Fri Nov 12, 2021 12:32 pm
Forum: Raspberry Pi OS
Topic: Update of PI OS failed
Replies: 10
Views: 776

Update of PI OS failed

Hello, two diferent SD cards were uploaded with the last version of PI OS and the very same result appeared.
Booting ok, setting locales ok then updating failure. Very slow respond on desctop (20 or more seconds respond time).
Rebooting doesn't help...

Any idea...

Regards, Vlado
by California
Tue Apr 27, 2021 2:08 pm
Forum: MicroPython
Topic: NameError: name '__thonny_helper' isn't defined
Replies: 3
Views: 255

Re: NameError: name '__thonny_helper' isn't defined

Thanks, issue is posted on github
by California
Tue Apr 27, 2021 12:42 pm
Forum: MicroPython
Topic: NameError: name '__thonny_helper' isn't defined
Replies: 3
Views: 255

NameError: name '__thonny_helper' isn't defined

Hello, I am trying to run code below from pico and I got an error like in title, weeks ago this didn't happend. Some other programs run normally. What I am missing or doing wrong? RPi side: import smbus import time bus = smbus.SMBus(1) bus.write_byte(0x41,12) time.sleep(1) bus.write_byte(0x41,15) pi...
by California
Wed Apr 21, 2021 7:29 pm
Forum: Raspberry Pi OS
Topic: RAM usage increased after 10 days more than 10x
Replies: 7
Views: 438

Re: RAM usage increased after 10 days more than 10x

Yes, it is Slovenian language. About RAM: obviously I was wrong when thinking about easy solution. Rebooting RPi after 10 days of operation is not so bad...
Thanks anyway,

Regards, Vlado
by California
Tue Apr 20, 2021 4:59 pm
Forum: Raspberry Pi OS
Topic: RAM usage increased after 10 days more than 10x
Replies: 7
Views: 438

Re: RAM usage increased after 10 days more than 10x

Thanks for your respond, I can pack complete code and post it here if you would be so kind to check it, couse I am a little bit short for this task.
by California
Tue Apr 20, 2021 10:50 am
Forum: Raspberry Pi OS
Topic: RAM usage increased after 10 days more than 10x
Replies: 7
Views: 438

RAM usage increased after 10 days more than 10x

Hello, I hope this is the right place to post this topic. I have a python app running on RPi3B, which works normal few days, then everything become wery slow. To solve this I manage to put together small piece of code inside of the app to reboot RPi every 10th day. After research what is going on, b...
by California
Mon Mar 29, 2021 8:41 pm
Forum: MicroPython
Topic: Software reset of the Pico?
Replies: 25
Views: 2367

Re: Software reset of the Pico?

I saw on youtube someone connect small button to pins 28(GND) and 30(RUN), to avoid disconecting through USB. I had in mind reset like disconecting pico from power for a second to start the program from the begining. Some micrcontrollers have this future.
by California
Mon Mar 29, 2021 6:43 am
Forum: MicroPython
Topic: Software reset of the Pico?
Replies: 25
Views: 2367

Software reset of the Pico?

Hello, connection RUN (pin 30) to GND force Pico to reset. Is there any way to do the same by software command? I would use this to restart Pico at the exactly desired momment with all output pins at low.

regards, Vlado
by California
Sun Mar 28, 2021 1:41 pm
Forum: MicroPython
Topic: i2c & stepper code run until 9th command?
Replies: 3
Views: 250

Re: i2c & stepper code run until 9th command?

Problem solved, complete code here in case someone would need it. # pin 1 - SDA # pin 2 - SCL # pin 3 - GND # pin 4 - Stepper A+ # pin 5 - Stepper B+ # Pin 6 - Stepper A- # pin 7 - Stepper B- # + 9VDC - Stepper middle point of coil A and coil B (unipolar stepper) import machine from machine import m...
by California
Sun Mar 28, 2021 1:37 pm
Forum: MicroPython
Topic: Stepping motor left - right movement problem
Replies: 11
Views: 538

Re: Stepping motor left - right movement problem

Ok, you just solve the problem. It doesn't stop this time.

Thank you very much, Vlado
by California
Sun Mar 28, 2021 12:55 pm
Forum: MicroPython
Topic: i2c & stepper code run until 9th command?
Replies: 3
Views: 250

Re: i2c & stepper code run until 9th command?

If asmpio function is outside of the method I got an error: Traceback (most recent call last): File "<stdin>", line 19, in <module> File "rp2.py", line 254, in dec File "<stdin>", line 31, in right NameError: name 'StateMachine' isn't defined I already have changed name...
by California
Sun Mar 28, 2021 7:55 am
Forum: MicroPython
Topic: i2c & stepper code run until 9th command?
Replies: 3
Views: 250

i2c & stepper code run until 9th command?

Hello again. So code below works ok until 9th command is addressed to pico, then this message is hown on pico side, so the question is why this situation happend on the same place and what to do to avoid this error? Hope all informations are provided. Regards, Vlado 1 22 2 25 3 22 4 25 5 22 6 25 7 2...
by California
Sat Mar 27, 2021 9:46 pm
Forum: MicroPython
Topic: Stepping motor left - right movement problem
Replies: 11
Views: 538

Re: Stepping motor left - right movement problem

Yes it works, just tested.

Thanks for your help.

Regards, Vlado
by California
Sat Mar 27, 2021 9:00 pm
Forum: MicroPython
Topic: Stepping motor left - right movement problem
Replies: 11
Views: 538

Re: Stepping motor left - right movement problem

It works now, with remooving all others nop(31) it works even better. My wish is to combine this stepper code with i2c communication code to controll stepper from a distance of 10-15m. Do you think Pico is capable to run complete code?
by California
Sat Mar 27, 2021 7:15 pm
Forum: MicroPython
Topic: Stepping motor left - right movement problem
Replies: 11
Views: 538

Re: Stepping motor left - right movement problem

I am sorry, my message was not clear enough. I have unipolar Stepper motor. Inside of the code are two methods, one for left rotation and another for right rotation. So I wonder if it's possible to run both methods without error. If you disable one method, another one works perfectly. Hope, shematic...
by California
Sat Mar 27, 2021 3:59 pm
Forum: MicroPython
Topic: Stepping motor left - right movement problem
Replies: 11
Views: 538

Stepping motor left - right movement problem

Hello, I am trying to rotate steper motor in both directions with no luck so far. Mooving individualy works ok for both directions. Below is my code, what I am missing here? from machine import Pin from rp2 import PIO, StateMachine, asm_pio from time import sleep import sys def right(): @asm_pio(set...
by California
Sat Mar 20, 2021 9:35 pm
Forum: MicroPython
Topic: Use Pico as an I2C slave?
Replies: 34
Views: 6659

Re: Use Pico as an I2C slave?

Great thanks to Danjperron for the i2c slave code. I manage to send the data to slave, but reading from it doesn't work for me. What is your master code for that action? Onboard LED is included into code below to show comunication live. RPi side: import smbus import time bus = smbus.SMBus(1) bus.wri...
by California
Thu Dec 10, 2020 4:22 pm
Forum: Python
Topic: timelist issue
Replies: 6
Views: 466

Re: timelist issue

Here is my solution, if someone would ever need it. import datetime as dt def test_(): global OUT_Buffer_Pec_drva timelist = [] x = [] n = 31 i = 0 while i < n: x.append(i) i += 1 currentTime = dt.datetime.now().strftime("%M") timelist.append(currentTime) timelist = timelist[-n:] for i in ...
by California
Thu Dec 10, 2020 1:15 pm
Forum: Python
Topic: timelist issue
Replies: 6
Views: 466

Re: timelist issue

Here is simple example of code. It prints out current minnutte. import datetime as dt def test_(): global OUT_Buffer_Pec_drva timelist = [] x = [] n = 31 i = 0 while i < n: x.append(i) i += 1 currentTime = dt.datetime.now().strftime("%M") timelist.append(currentTime) timelist = timelist[-n...
by California
Thu Dec 10, 2020 12:58 pm
Forum: Python
Topic: timelist issue
Replies: 6
Views: 466

Re: timelist issue

Timelist represents minuttes, thats why it has to be changed.
by California
Thu Dec 10, 2020 12:19 pm
Forum: Python
Topic: timelist issue
Replies: 6
Views: 466

Re: timelist issue

It needs to be done as quick as possible.

Go to advanced search