Go to advanced search

by hippy
Tue Jul 27, 2021 4:39 pm
Forum: MicroPython
Topic: send an sms using sim800l and raspberry pi pico on thonny
Replies: 3
Views: 77

Re: send an sms using sim800l and raspberry pi pico on thonny

It may possibly be a case of having to add print("Got here...") between each line so you can see where it's stalling or hanging, is and isn't going.
by hippy
Tue Jul 27, 2021 4:29 pm
Forum: General
Topic: Pi Pico - the most user un-friendly MCU?
Replies: 272
Views: 7631

Re: Pi Pico - the most user un-friendly MCU?

Note that the command line length issue happens when you dont use the provided SDK CMake build. The command line issue on Windows is a Windows limitation that CMake itself already works around. I am not exactly sure how you mean by "the provided SDK CMake build". I followed the recommende...
by hippy
Tue Jul 27, 2021 4:03 pm
Forum: SDK
Topic: is the arduino support for RPI2040 better then CMAKE ????
Replies: 38
Views: 772

Re: is the arduino support for RPI2040 better then CMAKE ????

The Arduino team appear to have recognised that Java-based may not have been the best path, is not the path for the future, and Arduino IDE 2.0 is no longer based on Java. It is now 'electron' using the Theia IDE framework. So, even slower then.... Quite possibly. Electron is what VS Code is built ...
by hippy
Tue Jul 27, 2021 2:53 pm
Forum: SDK
Topic: is the arduino support for RPI2040 better then CMAKE ????
Replies: 38
Views: 772

Re: is the arduino support for RPI2040 better then CMAKE ????

Arduino java eats tons of CPU according to top Being Java-based has been my biggest criticism of Arduino IDE but that had to be tempered by the fact that it does work. I don't know why they chose to be Java-based. That decision was taken two decades ago and my guess would be it was felt to be the b...
by hippy
Tue Jul 27, 2021 2:34 pm
Forum: SDK
Topic: is the arduino support for RPI2040 better then CMAKE ????
Replies: 38
Views: 772

Re: is the arduino support for RPI2040 better then CMAKE ????

And on the topic of IDEs, I do not understand the appeal of very dumbed down ones like the Arduino IDE. I can; "edit, click, done" is perfect for me. I don't need more than that. And others obviously share the same sentiment. Some people prefer minimalism, see that as an ideal. Other peop...
by hippy
Tue Jul 27, 2021 12:41 pm
Forum: MicroPython
Topic: Speed measurement on a Triton router
Replies: 2
Views: 106

Re: Speed measurement on a Triton router

I would use a PIO to increment decrement the X or Y register during the revolution and then push that. 30,000 RPM is 500 RPS, one revolution per 2ms at the fastest rate which should be easily handled by polling and checking if there's any data in the sm.get() queue, and should work with interrupts. ...
by hippy
Tue Jul 27, 2021 12:19 pm
Forum: MicroPython
Topic: send an sms using sim800l and raspberry pi pico on thonny
Replies: 3
Views: 77

Re: send an sms using sim800l and raspberry pi pico on thonny

Some indication of what results you get, where and how it diverges from what was expected, might help others help you to determine what is going wrong. You can substitute your SIM800 with a PC running a terminal emulator so you can check what it is receiving, send back responses to check the code ha...
by hippy
Tue Jul 27, 2021 12:08 pm
Forum: SDK
Topic: is the arduino support for RPI2040 better then CMAKE ????
Replies: 38
Views: 772

Re: is the arduino support for RPI2040 better then CMAKE ????

Pretty sure that their entire thing is custom, and I don't know how they could actually leverage an existing build system with the kind of insane stuff they do: You are looking at it from the wrong perspective, criticising how it's done, what you don't like about the implementation, rather than see...
by hippy
Tue Jul 27, 2021 11:52 am
Forum: SDK
Topic: is the arduino support for RPI2040 better then CMAKE ????
Replies: 38
Views: 772

Re: is the arduino support for RPI2040 better then CMAKE ????

Perhaps the question should be why did Arduino not use CMake and instead wrote their own system? (Or whatever they actually did) To expand on my previous answer to that; they wanted an accessible and easy to use cross-platform tool. Something which was not intimidating or complicated to those who h...
by hippy
Tue Jul 27, 2021 10:46 am
Forum: General
Topic: Pico as USB display?
Replies: 35
Views: 1290

Re: Pico as USB display?

Not sure, could DSI be done on the PIO too? VGA/HDMI has been done. Not sure because I know little of DSI but it would still face the constraints which VGA and DVI (HDMI) have on a Pico; it is not blindingly fast and doesn't have enough RAM for larger resolution display buffers. There is not enough...
by hippy
Tue Jul 27, 2021 10:33 am
Forum: General
Topic: Pi Pico - the most user un-friendly MCU?
Replies: 272
Views: 7631

Re: Pi Pico - the most user un-friendly MCU?

I think the SDK adding so many options that limits on the Windows command line can overflow is a bit weird. That is a problem which prevents MicroPython for Pico building on Windows. The solution there is to install MingW rather than the officially recommended Microsoft build tools. Not only is Min...
by hippy
Mon Jul 26, 2021 6:28 pm
Forum: General
Topic: A Pico Z-machine
Replies: 31
Views: 1015

Re: A Pico Z-machine

ejolson wrote:
Mon Jul 26, 2021 4:48 pm
I've been unable to find an RP2040 on a circuit board designed to plug directly into a USB A socket. Does anyone make one?
The only one I know of is -

Adafruit Trinkey QT2040 - https://www.adafruit.com/product/5056
by hippy
Mon Jul 26, 2021 4:41 pm
Forum: SDK
Topic: is the arduino support for RPI2040 better then CMAKE ????
Replies: 38
Views: 772

Re: is the arduino support for RPI2040 better then CMAKE ????

Why, oh why did opencv devloppers , dlib developper and tons of others forget Arduino and use CMake? My guess would be it was because they aimed for a particular target audience and did not care so much if that did not suit other sections of their potential audience ? One should also ask why the Ar...
by hippy
Mon Jul 26, 2021 4:18 pm
Forum: SDK
Topic: is the arduino support for RPI2040 better then CMAKE ????
Replies: 38
Views: 772

Re: is the arduino support for RPI2040 better then CMAKE ????

In its basic installation,. VSCode IS a pretty simple IDE. Editor, terminal etc. It just works. Indeed it does and I am sure plenty are happy with it. I simply think there are better alternatives for me and like-minded others. As for doing our own simple IDE, that's a multi man year project, just n...
by hippy
Mon Jul 26, 2021 3:52 pm
Forum: General
Topic: Pico as USB display?
Replies: 35
Views: 1290

Re: Pico as USB display?

USB-IF would not approve ofc, the VID is revoked after all, but they can't prevent its use, only prevent certification. That's where I am not so sure. True, they can't prevent it, but they could seek damages and other legal remedies. I do recall there was a case where using someone else's VID was t...
by hippy
Mon Jul 26, 2021 1:41 pm
Forum: SDK
Topic: is the arduino support for RPI2040 better then CMAKE ????
Replies: 38
Views: 772

Re: is the arduino support for RPI2040 better then CMAKE ????

I am happy with it all - installation and use. I hit a few hurdles, have a few more to overcome, but it's been far easier than other environments I have encountered. But that doesn't mean everyone else finds it that way, or that things couldn't be made easier for those who do want it even easier. An...
by hippy
Mon Jul 26, 2021 1:12 pm
Forum: General
Topic: Current consumption on sleep modes
Replies: 24
Views: 508

Re: Current consumption on sleep modes

if Pico doesn't meet your requirements then you may need to choose another microcontroller. Indeed but how does one know if they need to or don't if they don't know how much power it uses or by how much power can be reduced. It would be a shame if someone did discount using an RP2040 because of the...
by hippy
Mon Jul 26, 2021 12:41 pm
Forum: General
Topic: Pico as USB display?
Replies: 35
Views: 1290

Re: Pico as USB display?

If someone wants to start making GUD displays for sale, it's possible to use the 16d0:10a9 USB id. Conditions: https://github.com/notro/gud/blob/master/16d0-10a9-license.txt No personal offence intended but has the legitimacy of doing that been run past a lawyer ? I had been wondering what the VID-...
by hippy
Mon Jul 26, 2021 12:02 pm
Forum: SDK
Topic: uart_is_readable_within_us() potential timer overrun issue
Replies: 3
Views: 131

Re: uart_is_readable_within_us() potential timer overrun issue

It would be better to have the routine which timesout handle overflow and wraparound. It seems it would be a pretty rare event to encounter but, if one is concerned, using 64-bit rather than 32-bit isn't a proper solution, merely kicks the ball further down the field, makes it less likely but retain...
by hippy
Mon Jul 26, 2021 11:43 am
Forum: SDK
Topic: is the arduino support for RPI2040 better then CMAKE ????
Replies: 38
Views: 772

Re: is the arduino support for RPI2040 better then CMAKE ????

I would argue that the Pico SDK is simple and easy to use, a page or two of instructions gets you up and running. It's certainly not like dropping a new pilot in to the seat of an A380, the flight manual certainly has more than one page. If 'what there is' is good enough I am not sure why people ke...
by hippy
Mon Jul 26, 2021 11:26 am
Forum: MicroPython
Topic: Trivial code sometimes takes 5ms and interrupts are missed
Replies: 14
Views: 471

Re: Trivial code sometimes takes 5ms and interrupts are missed

Ok. If it is a full 10 us per statement, then most definitely this will be an issue. It's not always a full 10us but it's probably in the ballpark. A rough timing of your "encoderHandling" routine suggests it takes about 67us to call and execute which may actually be good enough in this c...
by hippy
Mon Jul 26, 2021 10:43 am
Forum: SDK
Topic: is the arduino support for RPI2040 better then CMAKE ????
Replies: 38
Views: 772

Re: is the arduino support for RPI2040 better then CMAKE ????

I tend to use nano now and cmake/make manually - its hardly a chore. Me too but that's because we have a good idea of what we are doing and are comfortable doing it. That's not so for D&T students and similar when they start out, particularly under Windows where the notion of anything but a GUI...
by hippy
Sun Jul 25, 2021 10:20 pm
Forum: General
Topic: Determining warnings to tolerate
Replies: 9
Views: 251

Re: Determining warnings to tolerate

FWIW we check the SDK with these: https://github.com/raspberrypi/pico-sdk/blob/bfcbefafc5d2a210551a4d9d80b4303d4ae0adf7/test/kitchen_sink/CMakeLists.txt#L55 We do occasionally go thru and fix more warnings, but we have the most egregious ones checked for. It's worth noting that I have not seen any ...
by hippy
Sun Jul 25, 2021 10:16 pm
Forum: General
Topic: Determining warnings to tolerate
Replies: 9
Views: 251

Re: Determining warnings to tolerate

I personally wouldn't automate deactivating warnings, I'd want to check all the occurrences where the warnings are given to make sure there isn't really an error. I suppose I should say that I really don't care if the code giving warnings doesn't run. At some point I will care and then I will fix t...
by hippy
Sun Jul 25, 2021 9:59 pm
Forum: MicroPython
Topic: Trivial code sometimes takes 5ms and interrupts are missed
Replies: 14
Views: 471

Re: Trivial code sometimes takes 5ms and interrupts are missed

An interrupt every 500us in an interpreter where one can expect 10us per statement and more might be pushing things. I have seen so many issues with threading and timer call-backs which I would anticipate could affect IRQ's that I wouldn't like to make a guess whether anything which should work will...

Go to advanced search