This website uses cookies to ensure you get the best experience on our website.
Ohbot
  • OH
    • Educators
    • Makers
  • About
    • Our Story
    • Follow Us
    • Contact
  • Shop
    • All Robots
    • Ohbot Assembled
    • Ohbot Kit
    • Picoh
    • OhbotApp2
    • Accessories
    • Resellers
  • Get Started
    • Ohbot Assembled
    • Ohbot Kit
    • Picoh
    • Accessories
    • Technical Notes
    • Languages
    • Support
  • Learn
    • Picoh
    • Ohbot
    • AI
    • Robot Work
    • Share

Using Ohbot and Picoh to learn about AI

Picture
You can connect your Ohbot or Picoh to ChatGPT with a single block so that your robot can respond to questions and prompts with the full power of an AI Large Language Model.

If you are using version 2.96 or later of the OhbotApp2 and you are on free trial or you have a licence or add-in you can use the GPT blocks for free subject to limits on the number of requests and tokens that you use.  Go to Licence from the Help menu in the app to see what your limits are and how much you have used.

If you want to use your own OpenAI account for unlimited access to GPT click on the + on the right of the box below for information about the setup process.
Use your own OpenAI account
First go to the Open AI page and create an account:

https://platform.openai.com/signup

Since March 2024 OpenAI has required that you prefund your account rather than paying at the end of the month so you will need to go to your openai billing page and add some credit:

https://platform.openai.com/settings/organization/billing/overview

​Go to the Cloud AI Setup screen on the Settings menu in the app:
Picture
Copy your openai api key from https://platform.openai.com/account/api-keys and paste it into the Key box on the Setup page:
Picture
You can leave the other boxes set to their defaults.  

Getting started with some blocks

Drag a when space key pressed onto the canvas from the Events palette, a say until done block from the Speech palette and a gpt block from the AI palette.  Type some words into the gpt box:
Picture
Press the space key and Ohbot will greet you.  You can try out different phrases for your Ohbot to respond to and also add some blocks to get Ohbot to respond to spoken questions.  Here's an example program that gives you a fully operational blinking and lip synching robot that answers any spoken question using GPT:
Picture
Your program can also add a prompt in front of the question that you ask in order to give clues to GPT about how to respond.  Here's an example:
Picture
You can see that in the prompt we have tried to stop Florence Nightingale from giving "her" views about mobile phones and computers but the result are mixed.  You may be able to improve this by rephrasing the prompt or it may be a useful discussion point to explore the current limitations of AI.

If you have a webcam or Ohbot camera available and select gpt-4o-vision in the gpt dropdown you can send the current image to GPT:
Picture
You can also use the gpturl block to send an image url to GPT:
Picture
From version 2.96 onwards you can also use the gptassistant block to hold a conversation with gpt with it remembering what you've told it.  This is fully explained in our online help.
Picture

Sample Programs

First of all go to Open from the File menu in the app and load the program called AIDemo.  This includes some of the examples that are listed above and adds some interesting movement for Ohbot.

You can also have a look at the downloadable AI sample programs on Ohbiverse:

https://community.ohbot.co.uk/Explore/Index?classification=2043&includeV2App=Y

Resources for looking at some of the principles behind AI

​If you want to start looking at the principles underlying AI we have collected together a number of resources for using Ohbot to help you investigate AI concepts such as learning, natural language processing and Markov chains:

With the OhbotApp2
Natural language processing 1
Natural language processing 2
Natural language processing 3
The cat sat on the cat
The cat sat on the cat again
Keep your chin up
Move like a human 1
Move like a human 2
Move like a human 3

Personal assistant 1
Personal assistant 2
Personal assistant 3

With our legacy Windows App version 1.56
Natural language processing 1
Natural language processing 2
The cat sat on the cat
Keep your chin up
Move like a human 1
Move like a human 2
Move like a human 3

Personal assistant 1
Personal assistant 3

With Scratch
Natural language processing 1
Natural language processing 2
The cat sat on the cat
Keep your chin up
Move like a human 1
Move like a human 2
Move like a human 3
Picture
OH
Educators
Makers

About
Our Story
Follow Us
Consultancy
Contact
Shop
All Robots
Ohbot Assembled
Ohbot Kit
Picoh
OhbotApp2
Accessories
Resellers
Get Started
​Ohbot Kit
Ohbot Assembled
Picoh
Accessories
Technical Notes

Languages
Support

Learn
Picoh

Ohbot
AI
Robot Work
Share
Picture
Picture
Picture
Picture
Picture
​Ohbot Ltd. 2A Halliday's Mill, London Road, Chalford, Gloucestershire, GL6 8NR, UK
Copyright © Ohbot Ltd.  All rights reserved.
​Ohbot
® is a registered trademark of Ohbot Ltd.
  • OH
    • Educators
    • Makers
  • About
    • Our Story
    • Follow Us
    • Contact
  • Shop
    • All Robots
    • Ohbot Assembled
    • Ohbot Kit
    • Picoh
    • OhbotApp2
    • Accessories
    • Resellers
  • Get Started
    • Ohbot Assembled
    • Ohbot Kit
    • Picoh
    • Accessories
    • Technical Notes
    • Languages
    • Support
  • Learn
    • Picoh
    • Ohbot
    • AI
    • Robot Work
    • Share