Arduino

4 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
1
 
 

Question about Arduino's…

I'm working on a small project involving an Arduino-powered box. I'm curious if it's possible to integrate a Python-based virtual assistant into this project. The idea is to create a compact, Arduino-powered device that includes a virtual assistant capable of performing various tasks. Is this something that can be achieved?

@arduino

2
4
arduino int to string (www.slyautomation.com)
submitted 3 months ago* (last edited 3 months ago) by slyuser@lemmy.ml to c/arduino@programming.dev
3
 
 
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 
 

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!

view more: next ›