Welcome Guest! To enable all features please Login or Register.
Options
Go to last post Go to first unread
blanius  
#1 Posted : Tuesday, July 26, 2016 6:33:17 AM(UTC)
blanius

Rank: Member

Groups: BetaUser, Registered
Joined: 5/24/2015(UTC)
Posts: 17

Was thanked: 1 time(s) in 1 post(s)
I have a project that I think the Embrio event style would be helpful but am unsure how to get going.

I'm using:
Adafruit 7 SEG led i2c board which uses 2 libraries
bluetooth via Software serial
a RTC using the RTClib library



Basically I'm making a clock display that can do the following from input via Bluetooth:

Display a fixed time i.e. 9:00
Increment the hour
increment the Minute and also hour if Increment goes beyond 59
reset time to the last set time
Display current time
Display running time based on set time

thanks 1 user thanked blanius for this useful post.
sample@email.tst on 4/7/2024(UTC)
EmbrioAdmin  
#2 Posted : Tuesday, July 26, 2016 6:46:43 AM(UTC)
EmbrioAdmin

Rank: Administration

Groups: Administrators
Joined: 12/11/2014(UTC)
Posts: 661

Thanks: 1 times
Was thanked: 109 time(s) in 104 post(s)
Yeah that shouldn't be too tough.

You'll write to the LCD with a custom Arduino node. It should have 2 integer inputs, one for hours and one for minutes. The print function would combine those into a display string to send to the LCD.

Visual programming is great for the overall program flow, but sometimes when you need some more advanced or specific functionality it's better to write a new node instead of trying to build your functionality out of existing nodes. Pasted below is a new node that should give you a good starting point. It lets you manually set the current time in hours and minutes, as well as has a trigger for incrementing the minutes.

Copy the text in the below Spoiler tag and paste it into Embrio. To edit the node, right click on it and select "Edit node definition".

Let me know if that helps or if you get stuck on something!

thanks 1 user thanked EmbrioAdmin for this useful post.
sample@email.tst on 4/7/2024(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error