Sugar ASR module Detailed Instructions

 Go back to Product Documents Navigation 

 Go back to ASR Module Documents Navigation 

 

Standalone Mode

Standalone mode is the status when the module is not connected to a mainboard, it can still control the 3PIN Sugar module port, 2PIN motor port and the 3PIN servo port. We recommend you use the Kittenbot lithium battery to power the module (3.7V ~ 4.2V) because the servo and the motor require high voltage and a large current.

 

3PIN Sugar module port control

After waking the module, use the commands below.

"Lamp on." / "Light on."

"Lamp off." / "Lamp off."

 

The module will respond and turn on or off the light.

 

2PIN motor port control

After waking the module, use the commands below.

"Fan on."

"Fan off."

"Speed up."

"Slow down."

 

The module will respond and turn on or off the fan and control its speed.

 

3PIN servo port control

After waking the module, use the commands below.

"Open door." / "Open window." / "Hanger out."

"Close door." / "Close window." / "Hanger in."

"Open curtains."

"Close curtains."

 

The module will respond and control the servo to turn to a certain angle.

Note: The servo angle is fixed and cannot be changed. The angle to open the door and the window is about 90 degrees (Geekservo 9g servo); the angle to open or close the curtains is about 180 degrees (Geekservo 9g servo).

 

Serial Module Mode

Serial module mode means to use the module with a mainboard (like the Future board) and in which circumstance the module acts as a serial module. When a built-in command is given, the message will be sent to the mainboard. Then the mainboard will analyze it and control other sensors. The serial baud rate is 115200.

 

Kittenblock Preparation

  1. wiring: blue wire to P2, green wire to p12.
  2. Open Kittenblock 1.88 and update the Future board extension version. (The latest version integrates the control of the ASR module.)
  3. Choose Future board as the hardware and then connect the serial. If it's the first time you connect to Kittenblock, a notification would pop up to remind you to upgrade the Future board firmware. Please choose to upgrade it.

 

Kittenblock Programming

  1. Write a simple program
  2. Run the program. The module will broadcast "The temperature now is 34 Celcius degree." If you wake the module and then say "light on" or "light off", the Future board will show the corresponding information on the screen.
Note:
A delay block must be added after the broadcast block. The exact time of delay needs to be tested, normally it is 2 seconds, but if the broadcast is long, then the delay should be more than 4 seconds. The broadcast command is preemptive, so there is no delay between two broadcast blocks, the first broadcast would be covered by the second one.

 

  1. If you want to download the program to your mainboard, you can click the 'coding' switch and click the upload icon on the pop-up screen.

 

More Commands

You can find more commands for this ASR module here.

 

If you have any question, please feel free to contact us at Discord, we will always be there to help.

 

KittenBot Team

 

 Go back to Product Documents Navigation 

 Go back to ASR Module Documents Navigation 

Leave a comment

Please note, comments need to be approved before they are published.