Re:Scamp – a self-contained Forth computer
by jareklupinski on Wednesday January 18, 2023 @11:48PM
(#34436806)
I'm a fan of #3, but with the ESP32 family rather than Arduino series. Same reason: someone has probably written an Arduino library for whatever I'm looking to drive (most are trivially ported to the ESP core)
I wish I could knuckle down and figure out #1, or, how to get Python talking through one of those FTDI USB->GPIO/I2C/SPI/UART/kitchenSink chips in a way that works in between OS reformats.
Re:Scamp – a self-contained Forth computer
by anyfoo on Thursday January 19, 2023 @12:02AM
(#34436890)
Ah well. I went to the store page on my iPhone and it just would not add it to the cart, nothing happened. Tried again on my MacBook, and it now says it's out of stock upfront. Guess when I tried to add it previously, it was already freshly out, and the Tindie shop ist just bad at telling me that. Oh well, next time.
Re:Scamp – a self-contained Forth computer
by hr0m on Thursday January 19, 2023 @02:55AM
(#34437812)
Offtopic:
You could try ulisp[1] for an interactive Arduino development experience.
[1]: http://www.ulisp.com/
Re:Scamp – a self-contained Forth computer
by incanus77 on Thursday January 19, 2023 @12:06PM
(#34442700)
Until this (Scamp), uLisp was the only powerful, interactive REPL for microcontrollers I’d seen. And it still runs on more platforms (including Pi Pico).
Re:Scamp – a self-contained Forth computer
by razzepoo on Thursday January 19, 2023 @07:23AM
(#34439557)
I really like micropython for the quick and dirty prototyping, you can use the REPL and send some bytes over SPI interactively. I tried it on the Raspberry Pi Pico and NodeMcu.
Currently, I'm using a Raspberry Pi Pico W with micropython to count pulses from my power meter, to log my consumption.
https://www.raspberrypi.com/documentation/microcontrollers/m...
Re:Scamp – a self-contained Forth computer
by unwind on Thursday January 19, 2023 @09:43AM
(#34440781)
That is when you're supposed to reach for your Bus Pirate [1], aarr matey.
It's a USB-connected Swiss army knife of embedded electronics access-enabling fun. Really really recommended for anyone who has ever had a similar need.
It's by Dangerous Prototypes [2] but I linked to AdaFruit since it's one of the recommended retailers, their site is good, and so on. There is a legendary 4.x version "in the works", but ignore that and get the 3.x if you need to get work done.
Very recently I just wanted to speak some SPI with some RF IC on a breakout board. I narrowed down the quickest options to this:
* Use my UM232H (FTDI FT232H dev board) to do SPI from my Mac. Dismissed pretty quickly, since I did not feel like dealing with the drivers and FTDI library.
* Boot Linux on one of my FPGA/ARM combos and hope that the generic SPI driver also exposes itself to user space, so that I can just pipe my data on the shell using xxd -r to /dev/i2c-foo or whatever. But even if the case, I had to at least mess with the device tree I think (and boot Linux, and have the proper tools).
* Use the Arduino Uno that I got as a gift, but never used so far, and either use its SPI library or hope someone made a "Sketch" already that I could just paste.
In the end, the last option won out, because someone actually had made a Sketch already that I could literally just paste and run.
But that was kind of lucky. I feel like such a self-contained Forth computer that is always ready to accept some Forth (instead of having to mess with a C toolchain) could make tasks like this super quick and simple, with flexibility.
Experiences?