Author Topic: Welcome to Neuron  (Read 8178 times)

CdRsKuLL

  • Administrator
  • Full Member
  • *****
  • Posts: 140
    • View Profile
Welcome to Neuron
« on: December 02, 2016, 09:36:00 AM »

Current APK Version v1.0 in the download section

Includes
Accelorometer (knows when he's fallen over and gets up)
Head Tracking
Day, Date and Time
A few jokes
Bored motion when in tracking mode
Auto copys new required actions into the actions folder
A few radio channels
Head button reading. Both buttons first turns off tracking, then radio.
Simple weather, tells you the current temprature and condition for anywhere in the world.
Find current location via IP
How long it would take to drive somewhere from somewhere
What's my IP / Location
Start of a webserver for control over phone / computer via web browser
XML load and save, now holds radio / music and jokes
Some questions, birthday, born etc..

Look at a full command list --> HERE



Welcome to Neuron. This is an application wrote to explore the possibilities with Ubtech's Alpha 2 robot .  It's a open source / shared project that can be found at the following link below;

https://github.com/CdRsKuLL/Neuron/tree/master

I'm using Android Studio version 2.2.2 and also Vysor to see what Alpha is doing. I normally close Alphachat when I first start Alpha up via Vysor. This is to stop this program inturrupting things like saying you can take a picture etc..


Please feel free to contribute to the application. I myself am not a coder by profession, more a copy and paste coder, or a plastic coder as I like to call myself. :-)  So if I can create something, I'm sure you can too!

Some of the things I'm looking at adding and working on are below..

Added .. Timer (Set and ask how much time is left)
Improved .. Command recognition, now stacks incoming messages

On the list to do...
Dance / Story actions from Ubtech
Wiki search
Weather tomorrow
Location (current location save to memory)
Face Recognition
Moods (emotions)

Please join in and get involved.. I'm not a pro-coder by anymeans!!  :-)


Steve
« Last Edit: December 11, 2016, 06:29:49 PM by CdRsKuLL »

emptiness

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Re: Welcome to Neuron
« Reply #1 on: December 03, 2016, 05:11:14 PM »
There was code in the Neuron repo when I looked a couple of days ago, but now it appears to be empty

CdRsKuLL

  • Administrator
  • Full Member
  • *****
  • Posts: 140
    • View Profile
Re: Welcome to Neuron
« Reply #2 on: December 03, 2016, 05:15:19 PM »
yep.. I've got it all messed up at the moment.. lol I've not used github before and now it wont republish !! I've no idea what I'm doing at the moment.. shh don't tell anyone :-)

CdRsKuLL

  • Administrator
  • Full Member
  • *****
  • Posts: 140
    • View Profile
Re: Welcome to Neuron
« Reply #3 on: December 03, 2016, 05:28:50 PM »
ok.. no idea if it's worked.. but it's back up. I think I best go and watch some youtube videos on how to use it :-)

emptiness

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Re: Welcome to Neuron
« Reply #4 on: December 03, 2016, 05:45:52 PM »
ok.. no idea if it's worked.. but it's back up. I think I best go and watch some youtube videos on how to use it :-)

Cool, I can see content there now. I've forked the repo so I can submit pull requests if I make any changes.

maiquelrinco

  • Guest
Re: Welcome to Neuron
« Reply #5 on: December 04, 2016, 10:46:22 PM »
Sorry about dummy question, but which Developer App we need to start? Android studio, what did you recommends to open you code?

CdRsKuLL

  • Administrator
  • Full Member
  • *****
  • Posts: 140
    • View Profile
Re: Welcome to Neuron
« Reply #6 on: December 04, 2016, 10:58:31 PM »
Hi Mike,

Their's no dummy question.. I use Android Studio, ver 2.2.2.0.  You can grab it from https://developer.android.com/studio/index.html

Download the zip from github and unzip it. You should then be able to open it in Android Studio :-)

Let me know how you get on.

CdRsKuLL

  • Administrator
  • Full Member
  • *****
  • Posts: 140
    • View Profile
Re: Welcome to Neuron
« Reply #7 on: December 05, 2016, 04:38:21 PM »
Okay I've submitted version v1.0 to Ubtech developers site. Hopefully it will be published to the app's store. :-) This should then be easy for everyone to install via the phone app.
« Last Edit: December 05, 2016, 04:51:21 PM by CdRsKuLL »

A247slacker

  • Guest
Re: Welcome to Neuron
« Reply #8 on: December 06, 2016, 08:54:44 PM »
wow great that would be very cool for us who have no idea :) I like your list the emotions would be very cool

maiquelrinco

  • Guest
Re: Welcome to Neuron
« Reply #9 on: December 07, 2016, 08:10:05 PM »
Thx, i'm downloading, not receive my alpha 2 until now, my order is 922 Developer Edition, I hope will be before xmas.

Regards

Hi Mike,

Their's no dummy question.. I use Android Studio, ver 2.2.2.0.  You can grab it from https://developer.android.com/studio/index.html

Download the zip from github and unzip it. You should then be able to open it in Android Studio :-)

Let me know how you get on.

CdRsKuLL

  • Administrator
  • Full Member
  • *****
  • Posts: 140
    • View Profile
Re: Welcome to Neuron
« Reply #10 on: December 07, 2016, 09:20:24 PM »
Hopefully it will come soon Mike, fingers crossed!

Well I've spent tonight moving all the radio station , music and jokes into an XML file. This is so it's easy for others to alter / adapt / add streaming channels etc. The XML file is wrote onto the nand flash which you can access when you plug your Alpha in to the computer via USB. It's in the Neuron folder. :-)

Currently looks like this..

Code: [Select]
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<userData>
  <IPLastLocation>IP Location here</IPLastLocation>
  <CurrentLocation>Current location here</CurrentLocation>
  <RadioStations>one@@one@@http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p</RadioStations>
  <RadioStations>won@@one@@http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p</RadioStations>
  <RadioStations>two@@two@@http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p</RadioStations>
  <RadioStations>classical@@classical@@http://media-the.musicradio.com:80/ClassicFMMP3</RadioStations>
  <RadioStations>x@@x@@http://media-the.musicradio.com:80/RadioXManchester</RadioStations>
  <MusicStations>dance@@dance@@http://stream.nonstopplay.co.uk/nsp-128k-mp3</MusicStations>
  <MusicStations>christmas@@christmas@@http://uk5.internet-radio.com:8278/live</MusicStations>
  <MusicStations>classical@@classical@@http://109.123.116.202:8020/stream</MusicStations>
  <MusicStations>jazz@@jazz@@http://tx.sharp-stream.com/icecast.php?i=jazzfmmobile.mp3</MusicStations>
  <Jokes>What do you call a paralyzed goat?.....Billy Idle.</Jokes>
  <Jokes>How do astronomers organize a party?.....They planet.</Jokes>
  <Jokes>Where do bees go to the toilet?.....at the BP station.</Jokes>
  <Jokes>I have a phobia of over engineered buildings. I have a complex complex complex.</Jokes>
  <Jokes>How do you make a tissue dance?.....Put a little boogie in it.</Jokes>
  <Jokes>Why couldn't the leopard play hide and seek?.....Because he was always spotted.</Jokes>
</userData>

The double @@ splits the lines up, so for the RadioStation it uses the format..

SEARCH NAME @@ RADIO NAME @@ STREAMURL

So.. with my Northern accent sometimes Radio one comes in as Radio won... so I've added the following line to correct this..
<RadioStations>won@@one@@http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p</RadioStations>

Same goes for the MusicStation :-)  I'll hopefully add some more stations and jokes this week.

Steve

maiquelrinco

  • Guest
Re: Welcome to Neuron
« Reply #11 on: December 07, 2016, 09:40:18 PM »
I got Android Studio and the code running well, Now I stuck on screen to run the code on a simulator, could be god if ubtec create an simulator for dev, they have one?

http://dev.ubtrobot.com/opencenter/sdk/sdkstore



Hi Mike,

Their's no dummy question.. I use Android Studio, ver 2.2.2.0.  You can grab it from https://developer.android.com/studio/index.html

Download the zip from github and unzip it. You should then be able to open it in Android Studio :-)

Let me know how you get on.

CdRsKuLL

  • Administrator
  • Full Member
  • *****
  • Posts: 140
    • View Profile
Re: Welcome to Neuron
« Reply #12 on: December 07, 2016, 09:50:45 PM »
Hi Mike,

Over on Ubtech they do a mobile service apk. This program is just like an alpha but without the motors. So you could start up the simulator and install this apk (program) then you would be good to go.

If you have a old tablet of phone running 5.1 then you might be better with this. The mobile services needs running once then will boot up every time.. 

I actually think the mobile services apk is in the download section on here.

CdRsKuLL

  • Administrator
  • Full Member
  • *****
  • Posts: 140
    • View Profile
Re: Welcome to Neuron
« Reply #13 on: December 09, 2016, 08:41:12 AM »
So I could do with some help...

Currently I would like to integrate face recognition but I've not really got a clue where to start.. The face detection I'm using is openCV so from what I know ,this is a good base to start from. Has anyone done this stuff before? 

This is what I'm thinking at the moment.

Alpha see's you. Runs through the stored face images on the nand drive. (/Neuron/Face). If it finds a match it then says hello and stores the current time (LastHello) in a xml. If it hasnt seen you before then it takes a photo and asks you your name. Then saves this to xml. It should then build up a record of when he's seen you. Say if he's not seen you for an hour.. then he says hello.   Very basic stuff for now but could lead to more involved complex questions, favourite radio station, football team, film genre etc..

Hello Steve, would you like me to play (favourite  radio station)..   Good morning, would you like to hear the news today?   etc.. etc..

It could then have different things for different people. .. well that's the idea.

maiquelrinco

  • Guest
Re: Welcome to Neuron
« Reply #14 on: December 09, 2016, 09:42:40 PM »
Well, I understand something you said, but would be good if you do an video how to start program with your code from zero, could be good for me and for the other who will start to program and understand the language of alpha 2. For example, I understand I need an simulator, but install your APK in the simulator and running another in a physical tablet with android.

Is just sugestion if you could do one how to, I think could be usefull for all, how to install android studio , running your programm and start dev without an Alpha 2.


I don't receive mine yet, so I'm waiting before xmas.


 

Sitemap 1 2 3 4 5