![]() |
Forum Index : Microcontroller and PC projects : Raspberry Pi enters microcontrer game with a $4 Pico
![]() ![]() |
|||||
Author | Message | ||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 715 |
I rest my case ![]() my site |
||||
CaptainBoing![]() Guru ![]() Joined: 07/09/2016 Location: United KingdomPosts: 2137 |
![]() |
||||
MustardMan![]() Senior Member ![]() Joined: 30/08/2019 Location: AustraliaPosts: 175 |
@CaptainBoing: Funny, but sadly what society has become. But back to the RP2040, I have been following the 'MM2 onewire' thread which reminded me of yet another (recent) situation where the ability to have a parallel task running would be so valuable. I had an application where I would have liked to have read a one-wire DS18B20 temperature sensor and simultaneously service an interrupt running at about 20Hz. Problem was to read the 18B20, MMBASIC disables interrupts during the read (it has to, that is the way the one-wire protocol works), but that meant my 20Hz interrupts were not serviced (causing no end of grief). To have the ability to either run multiple processes (propeller) or maybe program hardware (RP2040) to "just do" the one-wire protocol without bringing the rest of the system to a halt would have been truly great. As to whether the RP2040 could do this is a question someone other than me would have to answer. The solution I ended up with was to respin the PCB and write some short code for a baby 8 pin PIC chip to talk over the I2C bus, where it would read the one-wire temperature (continually) and return the result when it was asked. One of those project delays I could have done without! Cheers, |
||||
Cyber![]() Senior Member ![]() Joined: 13/01/2019 Location: UkrainePosts: 161 |
Does anybody know the reason for such unusual design of RPi Pico pins? For the first time I thought it's just to show off. But then I noticed that every pin has round deepening along the edge of the board, which is cunductive. Could it be that it is intended to go in some kind of slot? And some springy slot contacts could go into these deepenings on the board edge. ![]() |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6213 |
It allows you to solder the module directly onto a circuit board as if its a SMD component. Jim VK7JH MMedit |
||||
Cyber![]() Senior Member ![]() Joined: 13/01/2019 Location: UkrainePosts: 161 |
Ah, I see now. Thank you! Found example board for such SMD soldering. It even has holes for sticking out USB pins. ) |
||||
Plasmamac![]() Guru ![]() Joined: 31/01/2019 Location: GermanyPosts: 572 |
My first steps with the pico . Overclocking , prerendered wav data , interrupt routine Pico streams audio Plasma |
||||
phil99![]() Guru ![]() Joined: 11/02/2018 Location: AustraliaPosts: 2407 |
To MustardMan "I had an application where I would have liked to have read a one-wire DS18B20 temperature sensor and simultaneously service an interrupt running at about 20Hz. Problem was to read the 18B20, MMBASIC disables interrupts during the read (it has to, that is the way the one-wire protocol works), but that meant my 20Hz interrupts were not serviced (causing no end of grief)." The interrupt being so regular, would it be possible to do the One-Wire read straight after servicing the interrupt? Hopefully the read would be finished before the next interrupt is due. |
||||
Tinine Guru ![]() Joined: 30/03/2016 Location: United KingdomPosts: 1646 |
Or within the ISR? 50ms is like an eternity ![]() |
||||
![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |