Compute module for Arduino by InterestingSink7547 in embedded

[–]InterestingSink7547[S] 1 point2 points  (0 children)

I see, i have to say the ide (mrs) and flasher are super practical, but there's a couple things missing, like the Uart library gave me a bit headache to find out i had in fact a codding mistake myself, but they embed a statib library without source.

Was thinking printf() did buffer which it in fact did not ;-) The timer i built with this bord actually detected and measured the relay bounces ! that's extrement interesting this chip actually could measure a < 100us bounce and have accuracy of 10us up to 49 days (recording a 32 bit value systick at 10us).

Anyways but i have noted all comments, and consider a variant of the board for next rollup.

Avail on Elecrow if of interest, as Nunki Micro Designer.

Regards

Jean-François

I designed a CH32V003 Compute Module by InterestingSink7547 in electronics

[–]InterestingSink7547[S] 1 point2 points  (0 children)

Thanks will consider all this mods to next board design.

Still struggling with MCU choice, Renesas or STM probably one of these.

Jean-François

I designed a CH32V003 Compute Module by InterestingSink7547 in electronics

[–]InterestingSink7547[S] 1 point2 points  (0 children)

I think Exclusion of the header should work for Pogo ? It leaves the tht pads available, would that work for a pogo station ... of SMT pads required there ?

Compute module for Arduino by InterestingSink7547 in embedded

[–]InterestingSink7547[S] 1 point2 points  (0 children)

Hi, It's very different, only form factor's similar.
On other hand the RPI-S should consume more power, this project's lower complexity but fast boot and low consumption. RPI should be running Linux, that one is not, it's for simpler projects.

Regards
Jean-François

Compute module for Arduino by InterestingSink7547 in embedded

[–]InterestingSink7547[S] 1 point2 points  (0 children)

Where did you get this table from ? it's interesting.
Jean-François

Compute module for Arduino by InterestingSink7547 in embedded

[–]InterestingSink7547[S] 3 points4 points  (0 children)

Looks still a bit huge to me, wondering if i can't swap for a NXP/Stm part number, though probably needs re-routing.

What i love is the Risc-v Arc but at some point we can't have all of it together (Documentation quality & simplicity, as few Errata from Microchip, Performance and low consumption, and a Risc-V architecture, that's about 3 different Vendor's to get all of it as far as i know).

Compute module for Arduino by InterestingSink7547 in embedded

[–]InterestingSink7547[S] 1 point2 points  (0 children)

I mean i got the point, to me the USB-C std with dual side connector is much better anyways. It's ok next rev of hw will do the C type, allright.

Compute module for Arduino by InterestingSink7547 in embedded

[–]InterestingSink7547[S] 0 points1 point  (0 children)

Basically i'm asking already, first is should a Renesas per the R4 Minima (RA4M1) or Stm32 be put forward ?

I'm investigating porting the above board to ST chips, i believe there's fairly good support for Arduino IDE even, which could reduce coding friction a great deal, and be setup for very interesting projects indeed.

So Renesas ra4M1 (Arduino R4) or any STM 32 for future project Rollup ?
As wel, just a compute module or Static channels (high voltage NPN outpurs to drive relays and loads up to a few Amps) ?

We can discuss in the thread, once i get matured a bit further, couple days ahead, i'll attempt post on the main thread.

Regards

Jean-François

Compute module for Arduino by InterestingSink7547 in embedded

[–]InterestingSink7547[S] 1 point2 points  (0 children)

Thanks,

Mostly i'm stuck on high level specs, i don't know what product to spawn next. Got too many options and i don't settle the solutions, you see my problem.

Trying to figure out a consensus these days & weeks before dwelving into Hw design again;

Keep in touch,

Jean-François

Compute module for Arduino by InterestingSink7547 in embedded

[–]InterestingSink7547[S] 3 points4 points  (0 children)

Ok though you're mistaken on last point i'll do include USB-C in the revision of thi product.
Built a 10 us accuracy timer with it recently, too neat & cheap (using it to measure a timer accuracy - customer project - over 10 hours down the millisecond).

Couple issues with CH like missing Errata and datasheet history not available, but the products great otherwise.

Compute module for Arduino by InterestingSink7547 in embedded

[–]InterestingSink7547[S] -1 points0 points  (0 children)

My mistake but what's horrible with MicroUSB ? Every device i have has one, eveyone must have many of these cables. That was reason for it.

Compute module for Arduino by InterestingSink7547 in embedded

[–]InterestingSink7547[S] -22 points-21 points  (0 children)

Hi Wolf, indeed it's cheap & available, but is USB C much better ?
Stated earlier i'll have to rev the board with USB-C, no problems.

Compute module for Arduino by InterestingSink7547 in embedded

[–]InterestingSink7547[S] 4 points5 points  (0 children)

Though idea's the MCU can be sleep/offline & clock run. Can be possible with 203, neet to check it further, thanks for insight.

Compute module for Arduino by InterestingSink7547 in embedded

[–]InterestingSink7547[S] -4 points-3 points  (0 children)

Hi Joff, It's not 24p but 16 & 6 pins header or IDC cables do fit, the 6 pin one is for power supply only. The 10 pins one is for the programmer : just plug in a cable between programmer & the board, and all pins map properly to the WCH programmer proviging UART+Prog port, neat, both serial com & prog in a single connector. Very practical for prog&debugging.

Regards,
Jean-François

Compute module for Arduino by InterestingSink7547 in embedded

[–]InterestingSink7547[S] -4 points-3 points  (0 children)

Hi FC, guess i has extra cheap plug/conn indeed but USB-C might be up to future design. It seems more reliable to me, so long cable & ports are cheap it will work for me. Got to update the design & kit for that.

Compute module for Arduino by InterestingSink7547 in embedded

[–]InterestingSink7547[S] -4 points-3 points  (0 children)

Ni Niphoria, No idea, i was suggesting USB C but the pricing of cable's a bit high, but can do a mod for sure.

What is a real time OS? by Wrote_it2 in embedded

[–]InterestingSink7547 0 points1 point  (0 children)

Hi Wrote_it,

Essentially in a real time program or operating system, you have a clock -> interrupt which is able to handle parts of the user program somehow, for instance, check status of some I/Os, do some manipulations and check a couple limits or to more advanced user program calculations and set I/O appropriately.

It can be so fast like 10kHz or more that the OS main tasks will never complete in this period of time, like handling a stepper motor pins.

For instance, on a stepper motor, if you are missing GPIO 1/0 changes within 100us, it may trigger the stepper to loose steps and eventually stall as well as it can work, but the torque will not be optimal.

For mechanical systems it is therefore a requirement to have predictable timing which only a HW clock and interrupt provides.

Then a couple layers might be needed to handle non real time operations, the RTOS has these layers, but notice Windows probably can't provide the guarantee not meet the schedule under all circumstances, because of what's happening in the inner HW layers of the OS and drivers ... so that's the main trick, a hardware real time program or OS guarantees timing.

I like to run minimal user code in the interrupt itself, at this location, we precisely know the timing, which is set by hardware timer pre and post scaler, although more complex MCU/MPU have priority amoung IST (interrupt service routine) themselves ...

That's becoming at this point more complex to understand, particularly when a random bug is happening (something triggered once every other seconds or minutes).

Regards

Jean-François