Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:54 11 May 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Draft PicoMite 6.00.01 User Manual

     Page 11 of 13    
Author Message
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1527
Posted: 04:16pm 24 Jan 2025
Copy link to clipboard 
Print this post

@Geoff
Are the question marks in the keydown description intentional? That seems strange to me. Maybe a typo? It's already in the manual for CMM2.



Kind regards
Michael
causality ≠ correlation ≠ coincidence
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3269
Posted: 06:41pm 24 Jan 2025
Copy link to clipboard 
Print this post

Thanks Michael,
I think that the question marks (?) should be equals (=).  I will check with Peter who implemented this function.

Geoff
Geoff Graham - http://geoffg.net
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10067
Posted: 06:43pm 24 Jan 2025
Copy link to clipboard 
Print this post

Yes: should be = and of course you can have more than one modifier key pressed
Edited 2025-01-25 04:45 by matherp
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3269
Posted: 06:49pm 24 Jan 2025
Copy link to clipboard 
Print this post

Also, thanks cosmic frog and disco4now.
Changes made.

Geoff
Geoff Graham - http://geoffg.net
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3269
Posted: 08:38pm 24 Jan 2025
Copy link to clipboard 
Print this post

This is revision 5 which is up to date with all changes.  I will update my website tomorrow.
PicoMite_User_Manual.pdf

Geoff
Geoff Graham - http://geoffg.net
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1142
Posted: 11:31pm 24 Jan 2025
Copy link to clipboard 
Print this post

Hey Geoff...Not sure about this but is this still true?




I have a hard time keeping track but I remember "Eureka"

 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1142
Posted: 11:38pm 24 Jan 2025
Copy link to clipboard 
Print this post

Also...not such a big deal but it bit moi:

MATH PID STOP: The manual shows a link to some example code that also has a MATH PID CLOSE

The CLOSE now generates a syntax error. Maybe a mention to ignore it or something?


 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1636
Posted: 04:05am 25 Jan 2025
Copy link to clipboard 
Print this post

  PhenixRising said  Also...not such a big deal but it bit moi:

MATH PID STOP: The manual shows a link to some example code that also has a MATH PID CLOSE

The CLOSE now generates a syntax error. Maybe a mention to ignore it or something?


There is so little on the forum that explains the use of PID control. Why don't you please add a post with the corrected code so that others may benefit?

Bill
Keep safe. Live long and prosper.
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3269
Posted: 11:33am 25 Jan 2025
Copy link to clipboard 
Print this post

  PhenixRising said  Hey Geoff...Not sure about this but is this still true?

That is one for Peter.
If I remember correctly, he had it working but with caveats.

Geoff
Geoff Graham - http://geoffg.net
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10067
Posted: 12:09pm 25 Jan 2025
Copy link to clipboard 
Print this post

I would change it to

  Quote  To generate the DVI/HDMI signal the firmware needs to overclock the RP2350 to as high as 372MHz and most
Raspberry Pi Pico 2 modules will not have any trouble at these speeds. However, this cannot be guaranteed,
especially with third party modules. An example is the Pimoroni Pico Plus 2 which is marginal at
the required speeds and therefore cannot be recommended with the HDMI versions of the PicoMite firmware.


To give context 1280x720 needs 372MHz which works on my (one) example. High speed VGA needs 378MHz and I simply cannot get the Pimoroni Pico Plus 2 to run at that speed even upping the voltage massively and trying every possible tweak of the PSRAM timings.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10067
Posted: 02:24pm 25 Jan 2025
Copy link to clipboard 
Print this post

Geoff

Page 6 of the manual. In the table please change
  Quote  WebMiteRP2350 RP2350

to
  Quote  WebMiteRP2350 RP2350A

Edited 2025-01-26 00:25 by matherp
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1142
Posted: 08:08pm 25 Jan 2025
Copy link to clipboard 
Print this post

  Turbo46 said  
  PhenixRising said  Also...not such a big deal but it bit moi:

MATH PID STOP: The manual shows a link to some example code that also has a MATH PID CLOSE

The CLOSE now generates a syntax error. Maybe a mention to ignore it or something?


There is so little on the forum that explains the use of PID control. Why don't you please add a post with the corrected code so that others may benefit?

Bill


Hi Bill,

It's not so much corrected as refined. In an earlier version, there was STOP followed by CLOSE. Now it appears to me that CLOSE was deemed redundant(?) and so STOP serves both purposes.

Example code:
I plan to share the complete motion-control package, including velocity-profiling and position control.
Problem is that there is almost a daily PicoMite revelation and they are always really good ones    which means I'm behind schedule.

MATH PID was only introduced after I'd been successfully running a Basic-only PID. MATH PID is far superior (fast) but right now I'm only playing with numbers and letting the interrupts run for days on end...Rock solid, BTW.

The way it's looking right now is that a single PicoMite can perform the same function as the US$1,400 commercial product that I have used hundreds of  
 
electricat

Senior Member

Joined: 30/11/2020
Location: Lithuania
Posts: 295
Posted: 03:58pm 28 Jan 2025
Copy link to clipboard 
Print this post

How users (me at the moment) behaves and why later bothers devs.

I wanted to use SEEK (used largely before in MMB4W but decided to check Picomite manual just to be sure)

I read user manual: OPEN fname$ FOR mode AS [#]fnbr .....
RANDOM will open the file for both read and write and will allow random access using  SEEK command. When opened the read/write pointer is positioned at the end of the file.

I check SEEK :
Will position the read/write pointer in a file that has been opened on the Flash Filesystem or SD Card for RANDOM access to the 'pos' byte. The first byte in a file is numbered one so SEEK #5,1 will position the read/write pointer to the start of the file opened as #5.

User thinks "Well.. I must use RANDOM"

Maybe it is worth to note in user manual RANDOM works the same as output and creates a file if one does not exist.

SEEK works in case INPUT, then it might be stated more clear too.
My MMBasic 'sand box'
 
electricat

Senior Member

Joined: 30/11/2020
Location: Lithuania
Posts: 295
Posted: 01:10pm 30 Jan 2025
Copy link to clipboard 
Print this post


did not read whole thread, but if unnoticed, seems to me as minor
My MMBasic 'sand box'
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3269
Posted: 02:36pm 30 Jan 2025
Copy link to clipboard 
Print this post

Peter, I don't have a PicoMite to test but I assume that the example is wrong. Ie, it should be:
  Quote  eg,
MATH C_MUL a%(),a%(),a%()
will square all the values in the array a%()


Geoff
P.S. electricat, I will fix the description of RANDOM
Edited 2025-01-31 00:37 by Geoffg
Geoff Graham - http://geoffg.net
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2417
Posted: 08:35pm 30 Jan 2025
Copy link to clipboard 
Print this post

Both MUL and MULT work.
> clear
> dim a%(3)=(1,2,3,4)
> MATH C_MUL a%(),a%(),a%()
> math v_print a%()
1, 4, 9, 16
> clear
> dim a%(3)=(1,2,3,4)
> MATH C_MULT a%(),a%(),a%()
> math v_print a%()
1, 4, 9, 16
 
aFox
Senior Member

Joined: 28/02/2023
Location: Germany
Posts: 102
Posted: 12:41pm 31 Jan 2025
Copy link to clipboard 
Print this post

Is it possible that the forum does not resolve the URL addresses from the manual correctly?

Gregor
 
davematt
Regular Member

Joined: 27/09/2011
Location: Australia
Posts: 55
Posted: 03:41am 06 Feb 2025
Copy link to clipboard 
Print this post

Hi Geoff, If I’ve missed this being mentioned already, I apologise.
Page 184 says setup SPI as “Setpin  rx, tx, clk, SPI2.
Trying to connect a MCP4822 DAC chip (great little item by the way), I connect like that, no joy.
Reversing the order to match page 96 for System SPI, I tried (Setpin GP10, GP11, GP12, SPI2),the chip sprang to life…
Haven’t checked any other combinations, but regardless, two opposite setups in the manual is scary.
Best regards, Dave
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1142
Posted: 03:54am 06 Feb 2025
Copy link to clipboard 
Print this post

  davematt said  Hi Geoff, If I’ve missed this being mentioned already, I apologise.
Page 184 says setup SPI as “Setpin  rx, tx, clk, SPI2.
Trying to connect a MCP4822 DAC chip (great little item by the way), I connect like that, no joy.
Reversing the order to match page 96 for System SPI, I tried (Setpin GP10, GP11, GP12, SPI2),the chip sprang to life…
Haven’t checked any other combinations, but regardless, two opposite setups in the manual is scary.
Best regards, Dave


Well the first example (page 184) indicates the functions whereas the example on page 96 indicates the actual pin assignments.
I do kinda prefer though:

MISO (master in slave out)
MOSI (master out slave in)

rather than rx, tx.
 
davematt
Regular Member

Joined: 27/09/2011
Location: Australia
Posts: 55
Posted: 04:52am 06 Feb 2025
Copy link to clipboard 
Print this post

Err, not quite. I believe my test implies the Pico is sending clock pulses out the first pin specified, and data out (tx) the second. This is contrary to the manual, but works for me. Hence my post in the Manual thread. I note it is super easy to get confused here, very possibly that’s my problem.
I would like to understand better but. D
 
     Page 11 of 13    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025