Arduino as skills

any usage, be it getting a temperature read, controlling servos, blinking Leds,
reduced to a line of code, of adding it as a skill.

here is a code example for reading LM35 temperature connected to analog pin 0 :

#include "DiTemperature.h"
#include "LivinGrimoireLight.h"

Chobit* c1;

void setup() {
    Skill* s2 = new DiTemperature(0); // temperature skill created LM35 connected to analog pin 0
    c1 = new Chobit();
    c1->addSkill(s2);   
}

void loop() {
    c1->think(0, 0, 0);
}

I moved your topic to an appropriate forum category @mister_meeseeks.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

I can't choose the correct forum because you gave me read only permissions in that forum

I must warn the community that this author's posts should be taken with caution.
Since the code again contains a reference to

I don't think this topic will be much different from the previous ones by the same author.

3 Likes

@mister_meeseeks if a category is read-only, that means you aren't intended to be allowed to create topics in it and you must choose another appropriate category. It is not an excuse for posting in an inappropriate category.

Most of the read-only categories are "containers" for more specific subcategories.

wow, so much vitriol
just wanted to discuss coding.

I don't have to take this, I'm going home.

Not yet, but your bad-mouthing the forum from the start "made your bed" and now you harvest what you have sown. You need to make better choices. I remember!

@xfpd
nah, I've always been the double down type of guy

Nothing wrong with that. Be positive.

Hi, @mister_meeseeks

Thanks for the code.
What are these libraries.

#include "DiTemperature.h"
#include "LivinGrimoireLight.h"

Seriously, what are they and where do they come from.
What model Arduino does it use.

Unfortunately that is not what this forum is for, that is self-aggrandizement.

Can you please answer my question about the library, you seem to use it in most for the codes you have posted.

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:

Hi,
image
Word salad..

Tom.. :smiley: :+1: :coffee: :australia:

@TomGeorge
the library is the LivinGrimoireLight
a light version of the LivinGrimoire for the Arduino.
library link

another hello world example:
hello world link

more skills:
LGL skills link

the story of the LivinGrimoire

@Delta_G
we acctually posted an AI pharmaceutical called accelo (like the one in serial experiment Lain):

accelo example AI pharmaceutical

Ok, I made my way through some of your source code. I apologize, your code to me looks as though you're travelling the world three times over to find a shortcut. That is, in your "skills" such as diServo and diTemperature, it's as though you've sort of taken existing libraries of these servo and LM35 devices and rewritten some of it to suit the framework of your Living Grimoire, renaming the libraries "skills" to anthropomorphize in some way, Arduino software (and presumably hardware, too).

On the name: quick suggestion - since spelling isn't your strong suit (no biggie, everyone's good at different things), if I were you, I'd stick with one spelling. I prefer the one on the mock up of your book of the the same name "The Living Grimoire".

Is it a goal of yours that forum members offer you code that you can incorporate in your project?

You see, I think I actually "get" your project, at least from your perspective. It seems to be that you want some all-encompassing framework to develop Arduino projects in the context of "living" anime characters, sort of like Pokeman who I think can sort of absorb the energy of those around him? I got that right?

It sure sounds fun and I could see its utility, potentially. It reminds me of those Arduino projects books that have the reader diagnose a malfunctioning space ship while completing Arduino projects. For example:
"You are drifting off into space and need to change the SOS code to alert the deep salvage crew. You find a code card to insert the distress code into your spaceship's mainframe but it looks as though parts of it were charred in a malfunction. Clearly the ship's Engineer tried to salvage the code card but was unable to figure out what instructions should go in the damaged areas, so she wrote an exclamation point in all the areas that need fixed. Correct the errors to program the mainframe to send out the distress call before it's too late!"

const int sosPin = LED_BUILTIN;
const int dit = 200;
const int dah = 500;
const int letterSpace = 350;
const int wordSpace = 2500;

void setup() {
  pinMode(sosPin, OUTPUT);
}

void loop() {
  for (int i = 0; i < 3; i++) {
    digitalWrite(sosPin, HIGH);
    delay(dit);
    digitalWrite(sosPin, LOW);
    delay(dit);
  }
  delay(letterSpace);
  for (int i = 0; i < ! ; i++) {
    digitalWrite(sosPin, ! );
    delay(d! );
    digitalWrite(sosPin, ! );
    delay(d!  );
  }
  delay(letterSpace);
  for (int i = 0; i < 3; i++) {
    digitalWrite(sosPin, HIGH);
    delay(dit);
    digitalWrite(sosPin, LOW);
    delay(dit);
  }
  delay( !   Space);
}

"
I mean, I like sci fi and Arduino as much as the next guy (I make Hallowe'en props, mostly), but my question to you is, can you show an actual working project using your Living Grimoire, an Arduino project that is? The diServo "skill" seems to allow for use of multiple servos, if limited in the range (from what I can tell in the file).

Did you use this "skill" to make a hexapod robot or something? If so, can we see that?

@hallowed31
here is the LivinGrimoire naming convention wiki:

the goal is for forum members to make skills, yes.
they can even sell the skills they make.

this is not just an Arduino thing, the LivinGrimoire is ported in
7 programming languages ATM.

you can test the codes yourself. if you don't have
Servos or an LM35, the hello world sketch uses the built in LED #13.

example of adding sensor read skill, to the Arduino, and the laptop connected to it with the AI instance.(feedback would be nice)