We have a disproportionate number of engineers and code monkeys here, so maybe someone can help me. Does anyone play with dev boards like arduino? I need to have a high level discussion that leads to specifics on how I can build multi tasking into a single threaded microcontroller.
I'm just here for the discussion. I have an arduino that I had big plans for but it hasn't worked out. Was going to make a climate control/music player/dashboard that was capable of connecting to a megasquirt board.
Let me save you a lot of pain. Ambient makes a bunch of weather stations that can plug in to USB. That + WeeWx = Remote weather with http dashboard
I don't know if you can do it with Arduinos, but I've flashed the Mbed RTOS on micro-controllers before to get the the illusion of multitasking and threads.
I don't think we're talking about the same kind of dashboard. I'm talking about making one for a car, that shows me everything from the tach to oil pressure.
I see now. I had weather station in mind. Not sure why. Your project is more complicated than mine, but I can get you started, if you like. My project uses various sensors, switches buttons and LCD to display various sensed and switched things. LCD is not touch screen though.
I grossly mistyped mega squirt as multi squirt. And I recommend nobody do that. Especially on the company WiFi.
If you want the mechanical readings (speed, rpm, oil pressure, temps, etc) you can do that over CAN through the OBD-II diagnostic port, which is pretty straight forward and well documented. If you want to go really easy you can use a STN1110 chip to do most of the hard work for you (https://www.obdsol.com/solutions/chips/stn1110/). I believe you just pass it text commands via UART and it gives you the data back, no OBD-II knowledge required. If you want to control infotainment that's on a separate bus and more complicated to interface with.
I would prefer it that way, fits with the theme I'm going for. Lumberjack, it's not likely that the car I plan on doing this with would even have OBD, and definitely not OBDII. The MS board would collect the data, I want to convert said data and display it on command, similar to how modern displays work in a car, but without the fancy design.
I see. Sounds like an interesting project. The only thing I know about cars is how to talk to the on-board computers.
Interesting. Wiring it would be like wiring any other sensor, then, probably. Drop on a digital input, and use a pull up resistor. Code probably just a digital read, and likely already a library out there.
My current catastrophe. 12V with 10A fuse to block. Powers 12V breadboard for some things, and the load side of a relay. Then to 12V to 5V converter, to other half of block, to 5V breadboard with controller. Then sensors and buttons and bleh. I still have two more switches and like 8 more things to add to this bastard.
Playing with the STM32 (BluePill) the last two or three days. It's a 3.3V board, and most of my sensors are 5V, but it has several 5V tolerant pins. Really neat board, and only like $2.
Almost a year ago. I have no idea what I was referencing, but there is definitely a reference in there.