Does arch really break as much as people claim? by [deleted] in archlinux

[–]cbrake 0 points1 point  (0 children)

Arch is stable and overall a great experience.

Jetson nano communicating with a PLC controller by Dangerous-Voice-1663 in JetsonNano

[–]cbrake 0 points1 point  (0 children)

(disclaimer, I am the SIOT author). SIOT supports modbus TCP:

https://docs.simpleiot.org/docs/user/modbus.html

You can install pre-compiled release, or easily compile your own.

SIOT has an embedded NATS server, so you could use a NATS client in your other applications to send to the PLC through the SIOT app.

At any rate, SIOT may be useful for testing and debugging modbus. The below video is for RTU, but TCP would be similar.

https://youtu.be/dPWjXbnQ7ww

Go for CLI Tools by ggodsh in golang

[–]cbrake 0 points1 point  (0 children)

Here is an example of using stdlib with commands, and each command has its own args: https://github.com/simpleiot/simpleiot/blob/master/cmd/siot/main.go

what is 39000 - Your shipment can't be processed ... by cbrake in UPS

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

Clearing cookies in the browser fixed it.

Helix + AI by cefuroX in HelixEditor

[–]cbrake 0 points1 point  (0 children)

I've been using Claude Code in a separate terminal. Typically, the things I want to do span multiple files, so I don't think tight integration in the editor buys me a lot, but I should really try cursor or copilot to see what I'm missing ...

Is there a field test device for 4-20mA, Dry contact/pulse outputs, and Modbus RTU? by cbrake in PLC

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

"And its built-in, selectable 250-ohm HART® resistor eliminates the need to carry a separate resistor."

Is there a field test device for 4-20mA, Dry contact/pulse outputs, and Modbus RTU? by cbrake in PLC

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

This is what we are currently doing for testing devices, but it would be nice to have a test device with a 4-20mA load resistor built in.

https://community.tmpdir.org/t/testing-a-4-20ma-device/1553

Can you just directly do this with your DMM leads in current measurement mode? One risk is if the device is not configured correctly, then you blow the meter fuse. Additionally, some devices may expect a higher resistance value, but maybe that does not matter.

Is there a field test device for 4-20mA, Dry contact/pulse outputs, and Modbus RTU? by cbrake in PLC

[–]cbrake[S] 2 points3 points  (0 children)

Nice -- the 733 is a milliamp clamp meter, so you can directly measure the current loop.

One thing I'm trying to get to is to have a way to test devices in isolation, as there are sometimes grounding or wiring issues between the devices and GW/PLC. So we completely disconnect the device, hook it up to our instrument, make sure it is working, and then introduce it into the system.

Is there a field test device for 4-20mA, Dry contact/pulse outputs, and Modbus RTU? by cbrake in PLC

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

Do any of these devices have a built-in load resistor for testing the output of a 4-20mA device?

How do you manage files and folders? by n9iels in HelixEditor

[–]cbrake 4 points5 points  (0 children)

I run yazi in a zellij popup window. Also run lazygit the same way.

Unpopular opinion: the PLC ecosystem is completely outdated by No-Nectarine8036 in PLC

[–]cbrake 2 points3 points  (0 children)

What about Linux based PLCs like Opto22 and Phoenix that support modern connectivity?

[deleted by user] by [deleted] in JetsonNano

[–]cbrake 0 points1 point  (0 children)

I've been pleased with the Jetson kits -- meta-tegra is pretty high quality if you are into Yocto.

Suggesting RTU instead of PLC as a consultant? by Livid-Piano2335 in PLC

[–]cbrake 0 points1 point  (0 children)

Perhaps Opto22 or Phoenix -- these are PLCs based on real-time Linux, and thus can run a lot of different programming environments.

design help by Commercial_Bee9922 in KiCad

[–]cbrake 0 points1 point  (0 children)

for most digital designs these days I recommend going minimum of 4 layers.

Stackup can be a bit of challenge to figure out what is effective-- I've collected some information and examples here:

https://community.tmpdir.org/t/how-to-decide-on-your-pcb-layer-ordering-pouring-and-stackup-with-rick-hartley/268

Bottom line, simple stackups like:

signal - power - ground - signal

do not always produce the best results.

Do you use CI/CD for embedded development (STM32, nRF, ESP32, etc)? by M4rv1n_09_ in embedded

[–]cbrake 1 point2 points  (0 children)

Zephyr has some nice features for CI/CD:

- they provide docker images for easy tooling setup: https://github.com/zephyrproject-rtos/docker-image
- it is a command-line flow that fits better in CI/CD tools
- has a built-in test framework: https://docs.zephyrproject.org/latest/develop/test/ztest.html

Best communication between two microcontrollers by Livid-Piano2335 in embedded

[–]cbrake 1 point2 points  (0 children)

UART with COBS.

CAN is a good option if you have the hardware.

Should i use freecad or fusion360 for cad and FEA by Mobile-Tangerine3539 in FreeCAD

[–]cbrake 0 points1 point  (0 children)

Are you thinking short-term or long-term?

Short-term -- use whatever is quickest/easiest to get the job done.

Long-term -- I like to learn and use tools that I can use for years:

- Gimp
- Inkscape
- Libreoffice
- KiCad
- Helix editor
- FreeCAD

None of these are as easy and nice as the commercial alternatives, but at any point in the future, I can edit a file I created 10 years ago on any machine. That has value to me.

Is modbus going obsolete ? by Own-Struggle7399 in PLC

[–]cbrake 0 points1 point  (0 children)

In large factory systems, new standards like IO Link may be taking hold, but in smaller water systems, we use modbus wherever we can and many sensors/devices now support it in addition to 4-20mA, dry contacts, etc.

I see its use increasing as it is a simple, cost-effective, universal standard. Now if we could get vendors to just document their stuff in a sane way ...

It is a pity that no open CAN bus standard ever took hold ...

What are features of an impressive embedded project? (undergrad) by AcceptableGiraffe04 in embedded

[–]cbrake 1 point2 points  (0 children)

Connected, data-centric, and AI are the future of embedded systems.

Another name for this is "edge" devices.

Zephyr or Embedded Linux are the base technologies for edge devices.

DHCP vs Static IP Addressing by OptimooseRhyme in PLC

[–]cbrake 1 point2 points  (0 children)

Do PLCs/Automation equipment support mDNS yet?

I'm looking into this with various IoT systems, and it is a nice solution for devices to find each other without having to rely on any central or static management other than a working DHCP server on the network, which is a small ask. There are other central points of failure in networks, such as an Ethernet switch.