[fpc-pascal] Arduino project

Adriaan van Os adriaan at adriaan.biz
Fri Sep 11 18:11:58 CEST 2026


Hm, if I use the Raspberry Pi instead (e.g. with an SSI/RS-485 hat), I 
am on Linux, have excellent FPC support and I don't need to implement 
the laptop communications, as I can plug-in a keyboard and portable 
display ....

Regards,

Adriaan van Os

> Thanks for the reply, but I need to clarify things. The Raspberry Pi 
> would be a replacement for the Arduino, as (1) FPC certainly runs on 
> it and (2) I have one already, But I think it would be overkill and 
> that the Arduino board would use less power.
>
> So the question remains what Arduino board would be best supported by 
> FreePascal, with the requirements mentioned below (which by the way is 
> a star tracker for astro photography).
>
> Regards,
>
> Adriaan van Os
>
>> Raspberry pie just runs a version of linux, so FPC should work just 
>> fine on any raspberry pie.  They certainly can be run from a 
>> powerbank, I've done it with one of mine multiple times.  I haven't 
>> found a way to determine how long the powerbank is going to last, so 
>> you'll need to figure out how to do that, or just be prepared for 
>> everything to stop when the power runs out.
>>
>> As for talking to the arduino from linux (the raspberry pie), I 
>> haven't tried that myself, but I don't expect it to be any different 
>> from when using windows for the host os.
>>
>> Unfortunately, I don't know what resources for programming arduino 
>> boards exist for linux, but it can't be too terribly different from 
>> windows, but I've not specifically looked for linux versions of the 
>> various serial and/or other communications libraries you'd need to 
>> talk to the arduino, but as long as you can port or locate versions 
>> for linux, you shouldn't have any trouble with it.
>>
>> Now you're making me want to experiment.  I never had a need to talk 
>> to an arduino from linux, even though I use it regularly, I normally 
>> build projects to talk to windows, because that's what most folks I'm 
>> building things for use. This might be a fun project all by itself.
>>
>>
>> On 9/11/2026 5:56 AM, Adriaan van Os via fpc-pascal wrote:
>>>
>>> Maybe someone could advise me as to what Arduino hardware is best 
>>> supported by FreePascal. My project has the following requirements
>>>
>>> 1. Read an absolute rotary encoder (SSI data: Line-driver RS422 
>>> Diagnostic outputs push-pull)
>>>
>>> 2. Communicate with a closed-loop stepper motor driver (TMC2209 with 
>>> ESP32-S3, connectivity CAN, Serial, Wi-Fi, BLE, USB, Qwiic and GPIO)
>>>
>>> 3. Communicate with an Intel MacBook. Over Wifi, Bluetooth, USB or 
>>> ethernet ?
>>>
>>> Of course, less cables is better, but not a requirement.
>>>
>>> I already have a Raspberry Pi, but the application must be used in 
>>> the field, where there is no 220V, just a 12V or 5V powerbank.
>>>
>>> Thanks,
>>>
>>> Adriaan van Os
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20260911/15d3b76c/attachment.htm>


More information about the fpc-pascal mailing list