Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Tools
Old 18th October 2009, 07:16 PM   #61
Default

Mr. RB

Any possibilities in the 'short term' producing the help files in another format?

I'm not too worried as BTc. seems to be working ok just the fine tuning that may help.

BTW. I have also tested other hlp. files on other Apps. and they seem to run as expected.

Any other person tried?

Why do the big guns at MS. make things so complicated!!!! Control of the masses!!

Regards.
__________________
Mark
www.wombwell-on-the-net.co.uk

Last edited by wombweller; 18th October 2009 at 07:20 PM.
wombweller is offline  
Old 18th October 2009, 09:41 PM   #62
Default

Ok I put up the tutorial on driving a servo, this is a tutorial on modifying the TalkBot internal Slave1 firmware to move a servo under internal control;
TalkBotBrain Tutorials (Talking door lock using 1 servo)

-------------------

Hmm the Vista help thing has me a little stumped. I just read the link you posted;
I cannot open Help files that require the Windows Help (WinHlp32.exe) program
and it appears they are saying all you need to do is;
To obtain the WinHlp32.exe download for Windows Vista, visit the following Microsoft Web site:
Download details: WinHlp32.exe for Windows Vista (Download details: WinHlp32.exe for Windows Vista)

But from what you are saying wombweller that you already installed WinHlp32.exe and it still doesn't work?

All I can put it down to is that the program I am using to make the help file (Microsoft Help Workshop) is a few years old and the .HLP files it is creating are in some older format. Although I've never had a problem with the help files it creates in any other Windows version including XP.

I suppose the next option is for me to try to get a freeware app that will convert older .HLP files into a format that Vista can use directly. Since I only used the most basic stuff in the help files (text/pictures/links) that might be workable. The workings of .HLP files are VERY basic. Good old Microsoft huh.

---------------

Re controlling the TalkBot with serial, we sent a serial lead with it, you can just plug that into your PC and send serial commands from your PC if you want to test it that way.

It's best though to send commands from another microcontroller though. What micro/pcb do you use?
Mr RB is offline  
Old 19th October 2009, 08:34 AM   #63
Default TalkbotBrain and C18/Junebug

I could not resist connecting the TalkBotBrain to a Junebug.

This C18 code demonstrates how to drive the Talkbot Brain from a PIC18F1320. I am using the SLAVE1 firmware which communicates at 19200 baud. If you are using SLAVE2 (2400 baud) you need to adjust SPBRG the last parameter in OpenUSART from 25 to 207.

This thing is a lot of fun and it will be interesting to see what other people do with it.

Code:
/*
 * TalkBotBrain C18/Junebug demo
 * Build in the MPLAB IDE using C18 and device type 181320
 * .
 */
#pragma config OSC=INTIO2, WDT=OFF, LVP=OFF 
#include <p18F1320.h>
#include <delays.h>
#include <usart.h>

void delay_10us(unsigned char t);
void delay_ms(long t);

void main (void)
{
    unsigned char c;

    OSCCON = 0x72; // speed up the clock to 8MHz, 18F1320 
    ADCON1 = 0x70; // Set RB0, RB1, RB4 as digital I/O pins
    TRISB = 0xFF;  // RB1 and RB4 input
    TRISA = 0xBE;  // for charlieplex LEDs
    
    // 8 MHz, 19.2K baud, N 8 1
  OpenUSART(USART_TX_INT_OFF & USART_RX_INT_OFF & USART_ASYNCH_MODE &
     USART_EIGHT_BIT & USART_CONT_RX & USART_BRGH_HIGH, 25);
  PORTB=0;
  
  while(1)
  { 
    // demo one byte playback codes
    putcUSART('Z');  // out of range ***
    delay_ms(3500);
    putcUSART('E');  // exterminate1
    delay_ms(2000);
    putcUSART('G');  // exterminate2
    delay_ms(3000); 
    
    //demo 2 byte codes for playback    
    for (c=0x00;c<0x09;c++)
    {
      putcUSART(0xFF);
      putcUSART(c);
      LATAbits.LATA6 = ! LATAbits.LATA6;
      delay_ms(3000);
    }  
  }
}


// not sure how good these are, close enough for this app
void delay_10us(unsigned char t)
{
   int i;
   for (i=0;i<t;i++)
        Delay10TCYx(1);  
}

void delay_ms(long t)   // delays t millisecs
{
   do
   {
       delay_10us(99);    // not 100 to compensate for overhead
   } while(--t);
}
*** Without sending the out of range address the first "Exterminate" would play twice. I have not looked into it yet.

Junebug to TalkBotBrain Cable

Junebug CON8 to TalkBotBrain L
6 RB1/TX ... L RX
7 RB4/RX ... L TX
8 GND ....... L GND (center)

Note that the L (Logic) and P (PC) both connect to the talkbot's serial connection. P uses RS232 level signals, L uses logic level signals.

3v0
__________________
Please post questions to the forums. PM's are for personal communication.

BCHS/3v0's Tutorials
Junebug USB PIC programmer kit., USB Bit Whacker,
The 15 Minute Printed Circuit Board! (+drill time)

Last edited by 3v0; 19th October 2009 at 09:14 AM.
3v0 is online now  
Old 19th October 2009, 05:25 PM   #64
Default

Nice to see a Junebug example 3v0!

I'll put your code up on the TalkBotBrain.com site soon, I need to put lots of examples on there of connecting the TalkBot to other controllers. A photo would be great too! People love them photos.

Re the issue with needing to send an invalid address up front, this is a known issue that can happen when the TalkBot boots up, it has a delay and depending on the voltage on the Serial in pin (L RX) during the delay period the TalkBot USART can get a trash byte in it. I haven't worried about the issue as it is cleared the moment the second byte is sent. So by sending an invalid address (or any byte) you fix it by clearing the first trash byte from the USART.

There are a couple of undocumented features of the TalkBot Slave1;
1. if a sound is playing you can send the next 1 or 2 serial bytes (they are queued OK, but sending a 3rd or more bytes cause a USART error which clears all)
2. When a sound is finished playing, the TalkBot sends the sound number (as 1byte) out of the serial TX, which can tell the master that it's ready to play the next sound.

Last edited by Mr RB; 19th October 2009 at 05:31 PM.
Mr RB is offline  
Old 24th October 2009, 12:30 AM   #65
Default

I assume everyone's got their TalkBots by now?

If anyone needs help with getting a Sound Library built to put in their Talkbot, or any programming/serial issues etc then just speak up.
Mr RB is offline  
Old 24th October 2009, 01:11 AM   #66
Default

I have a say It from Parallax, and have thrown together a program that gives audio feedback,with the TalkBotBrain,depending on the commands you say.

I am working on new commands to program in the say it module, but here is a video of what I am talking about... YouTube - TalkBot and Say-it together
__________________
Mike2545
Mike2545 is offline  
Old 24th October 2009, 05:33 PM   #67
Default Cheers RB

Hi RB.

Got mine all safe and sound, like the compact design.

I will contact you RE: serial commands as I'm probably the most inexperienced amongst the people who received a Talkbot.
I think your website is quite easily understandable 'even for a newbie' it's my end that's the task as PIC's are new to me but I'm willing to learn and I'm looking in to it all at the mo!!!

I have yet to understand how BASIC and VB. serial commands go together within a programme to control the talkbot.

Just looking in Bits, Bytes ASCII and Binary. an example of a coommand may help me.


Will keep you updated.

Thanks!!
__________________
Mark
www.wombwell-on-the-net.co.uk

Last edited by wombweller; 24th October 2009 at 05:46 PM.
wombweller is offline  
Old 24th October 2009, 06:03 PM   #68
Default

Wombweller, in VB 2008 you can set up a serial port for "outside communications", for instance you could have the following code under a button event to actuate the first sound.

Code:
 If _port.IsOpen Then
        Else
            SerialPort1.Open()
            _port = SerialPort1

            _port.WriteLine(A)
            _port.Close
__________________
Mike2545
Mike2545 is offline  
Old 24th October 2009, 06:58 PM   #69
Default

Hey Mr. RB I am yet to recieve mine, I'm the only one in Canada though so...nobody to compare too!

I'll for sure let you know when it get it though!
__________________
Mike
My website: www.ElectroBird.net
birdman0_o is offline  
Old 24th October 2009, 07:10 PM   #70
Default

Quote:
Originally Posted by Mike2545 View Post
Wombweller, in VB 2008 you can set up a serial port for "outside communications", for instance you could have the following code under a button event to actuate the first sound.

Code:
 If _port.IsOpen Then
        Else
            SerialPort1.Open()
            _port = SerialPort1

            _port.WriteLine(A)
            _port.Close
Hi Mike

Just looking in to VB 8 now. I'm looking at 1 sound at random intervals and 1 maybe 2 servos again random.

Cheers for the code, will try the example.

Just watched your youtube vid. well done I can see how that could be usful.

Regards.
__________________
Mark
www.wombwell-on-the-net.co.uk
wombweller is offline  
Old 25th October 2009, 02:42 AM   #71
Default

Quote:
Originally Posted by Mike2545 View Post
I have a say It from Parallax, and have thrown together a program that gives audio feedback,with the TalkBotBrain,depending on the commands you say.

I am working on new commands to program in the say it module, but here is a video of what I am talking about... YouTube - TalkBot and Say-it together
That sounds very cool! Talk-in and talk-out. I never thought of that but's a very nice idea since the Talkbot was designed to make speaking controllers etc for the visually impaired and elderly as one of it's main uses. So talk-in talk-out would be great for someone with mobility issues.
Unfortunately I don't have a flash player compatible with the youtube plugins at the moment so I cant see the vid. If you want to send me the vid that would be cool, and I can put it on the talkbot page otherwise I will just link to the youtube vid so people can see it that way.

Birdman- you didn't get it yet? That's slow I would have expected it arriving sooner. Probably customs checking it out, they just LOVE it when you send little assembled PCBs through the mail.

Wombweller- to send a command to make the TalkBot speak, all you do is send one serial byte;
'A' (65) = play sound0
'B' (66) = play sound1 etc

You can just plug in the serial lead I provided between the Talkbot and your PC, and open up any freeware terminal program that sends bytes (there was one in Windows but I'm not sure about Vista).

Then set the terminal program to "19200 baud" it's as easy as that. Then press the A key on your PC keyboard to play sound0, press D to play sound3 etc.

If you are going to use visual basic then I'm probably not qualified to help on the VB side, I know the basic basics but that's about it I haven't used VB since I had a dos version on the '80s.

Procedurally it's very easy;

1. make a random number T, from 3-6
2. delay for (T * seconds) ok that's your random delay
3. make a random number S, from 0-9 (if you have 10 sounds)
4. send a serial byte which is ('A' + S) ok that played a random sound

Moving a servo is a little more complex but not much. If you get the above random sound player running ok with VB then it won't be hard to add the extra servo code on top.

My Talking Skull Dice is looking pretty cool, I sprayed it matte black and it's got a bone grey hand sculpted skull on top that you press to make the dice speak. I just glued the electronics in with silastic silicone so it's drying at the moment.
Mr RB is offline  
Old 1st November 2009, 12:11 AM   #72
Default

Where are all the projects?
Been waiting to see what everyone done with theirs.
The only one Ive seen is the skull one.
Are they on a different thread like the skull one?
zorbzz is offline  
Old 1st November 2009, 12:46 AM   #73
Default

Mine will be up by tomorrow night! Busy partying it up now
__________________
Mike
My website: www.ElectroBird.net
birdman0_o is offline  
Old 1st November 2009, 01:43 AM   #74
Default

Quote:
Originally Posted by zorbzz View Post
Where are all the projects?
Been waiting to see what everyone done with theirs.
The only one Ive seen is the skull one.
Are they on a different thread like the skull one?
Post #68 has a project in it...
__________________
Mike2545
Mike2545 is offline  
Old 1st November 2009, 05:50 AM   #75
Default

Quote:
Originally Posted by Mike2545 View Post
Post #68 has a project in it...
Your project is 4 lines of code? lol
__________________
Mike
My website: www.ElectroBird.net
birdman0_o is offline  
Reply

Tags
giveaway, halloween, projects

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
PLEASE GIVE ME THIS PROJECTS CIRCUIT DIAGRAM NEETI General Electronics Chat 6 9th November 2009 06:56 PM
Halloween circuits HarveyH42 Electronic Projects Design/Ideas/Reviews 21 15th October 2009 07:46 AM
Last minute Halloween costumes Mikebits Chit-Chat 4 31st October 2008 03:24 PM
Halloween: The Moster Mash 3v0 Chit-Chat 39 6th November 2007 03:09 PM



All times are GMT. The time now is 02:57 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker