
joinny
Japan
Asked
— Edited
Can someone show me how to program this DS 1302 real-time module in Ez_builder with EZ-B v4, I can't get used to it yet?
I intend to do it to remind patients to take medicine!
Sincerely thank!
Related Hardware EZ-B v4
Related Controls
Script Collection
Script
Upgrade to ARC Pro
Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!
Based on your post activity, we found some content that may be interesting to you. Explore these other
tutorials and community conversations.
I don't know if this will help but I found the below video on Youtube. Looks like you can use this with Arduino. Great news is they are cheap and you can now flash it with DJ's utility and make the Arduino act like a EZB and use ARC. ARC has time script commands where it watches the computer clock. You can write EZ script to sound an alarm through the computer speaker. You can also send the sound through an external speaker with a little more work and added devices.
I'm pretty sure you don't even need this device if you have an EZB. Everything you need is already there in ARC as mentioned above.
$ hours = FmtTimespan (CDateTime ("7/16/2019 8:35:00 PM") - CDateTime ("8/16/2019 5:00:00 PM"), "hh")
If ($ hours = AddHours ( "16/07/2019 9:00:00 PM"))
Nói ("xin chào") Khác
($ gi> 9)
Dng ()
End If
AND:
$reminderhour=WaitForSpeech(10,"one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve")
If($reminderhour = "one")
$reminderhour = 1
ElseIf($reminderhour = "two")
$reminderhour = 2
EndIf
If($reminderhour = "three")
$reminderhour = 3
ElseIf($reminderhour = "four")
$reminderhour = 4
EndIf
If($reminderhour = "five")
$reminderhour = 5
ElseIf($reminderhour = "six")
$reminderhour = 6
EndIf
If($reminderhour = "seven")
$reminderhour = 7
ElseIf($reminderhour = "eight")
$reminderhour = 8
EndIf
If($reminderhour = "nine")
$reminderhour = 9
ElseIf($reminderhour = "ten")
$reminderhour = 10
EndIf
If($reminderhour = "eleven")
$reminderhour = 11
ElseIf($reminderhour = "twelve")
$reminderhour = 12
EndIf
WaitUntilTime($reminderhour)
Say("Alert, Alert, This is your reminder")
$reminder = $reminderhour*60
$reminder = $reminder + $reminderminute
:loop
WaitForChange($minute)
$reminder = $reminder - 1
If($reminder = 0)
SayWait("Alert, Alert, This is your reminder")
Else
Goto(loop)
EndIf
Have you tried to run it inside the AZ Script console? If so where does it stop?
Hopefully someone better than me at writing script can help.
First you need to take the space out of the endif in the first IF statement. When I do that I get another error saying that the Line one is missing string quotes or is invalid.
I did not try to fix it past there but I I can see right off that your variable statement needs to have the space take out of the "$ hour" . Also I think you do need more String quotes on line one.
Fxrtst You can add voice recognition to support food feeding as well as hold things for your mother
I'm pretty sure what you are trying to do here. You want a speaker to announce "This is your Reminder" at a certain time. There is no reason why ARC cant do this running alone on a laptop or through an EZB's speaker mounted in it's power shell.
I think your script has errors that is not letting it run properly. Find and fix the errors and your plan will work.
Good luck.