1
69

I'm writing a little plotting library for LCDs. I'll try to publish it once it's more polished. What do you think?

For now it supports reading data from a Vector, arbitrary scaling on both axes, linear interpolation, different point styles (square, circle), arbitrary many graphs.

2
9
3
8
4
5
5
4
IDE 2.3 is out (blog.arduino.cc)
6
27
DIY Jurassic Park Pinball (blog.arduino.cc)
7
6
8
26
9
10
10
11
11
6
12
5

cross-posted from: https://lemmy.world/post/10852890

cross-posted from: https://lemmy.world/post/10852531

Working on a joystick. Seems like any protocol I use to read from peripherals is going to be bottlenecked by having just one input. My microcontroller might have multiple ADCs, but there's just one processor stepping through them. Same for spi, or i2c, or uart. There's really only ever one sensor reporting back its data at a time.

I know this might not matter for measurement resolution. Especially if you're polling at like 115k serial or something, but...

That's 8 bits per axis, and three axis. Now that's at least 34 bits. To sample each axis we're down to only 4.5k samples per second. Plus whatever other cycles the controller has to handle... even if I spent half that time doing microcontrolle cycles at like 2k we're probably still well with the best star craft apms or whatever. I'd still like to find some way to really over engineer this thing.

I read a little about tdm, but that's out of my league and I don't know if you could even have 3 simultaneously signals that way

I'm thinking a microcontroller for each axis, and a usb port for each of them. So it appears like 3 different controllers to the computer. The user would just have to map the axis from the 3 controllers into 1 in their game software. I assume the steam remapping could do this.

Is it just going to get smashed back into one thread in the computer's usb hub anyway?

Any other suggestions?

13
7
14
19
Arduino Weather Station (blog.arduino.cc)
15
5
16
5
17
4
18
2
19
14
20
4
21
4
22
3
23
18
24
4
Need help making a timer (programming.dev)

Hello!

For a project I need to make a four-digit timer that counts up. I think I can figure out the counting part myself, it is just the display part I need help with.

We are using four separate seven segment displays and an Arduino Mega 2560. The code currently looks like this: (I had it written over multiple lines, but the Lemmy preview just makes one big block of text from it so sorry for that)

void Display1() // Display a 1 { digitalWrite(1, LOW); digitalWrite(2, LOW); digitalWrite(4, HIGH); digitalWrite(6, HIGH); digitalWrite(7, LOW); digitalWrite(9, LOW); digitalWrite(10, LOW); }

This function is for writing a one, but I have written one for all ten numbers already. The problem is that this only works for the first display. Does anyone know how I can edit this code to make four seven segment displays work together, and make it display full numbers like 8732 for example?

Thank you!

25
13
view more: next ›

Arduino

305 readers
1 users here now

Arduino is an open-source electronic prototyping platform enabling users to create interactive electronic objects.

founded 1 year ago
MODERATORS