Discussion in "New Ideas regarding projects" started by    Ajay    Sep 7, 2007.
Fri Sep 07 2007, 01:03 PM
#1
Hey friends,
I have already discussed about the Roman Black's BTc Algorithm.. here is a working demo of it.. I know there might be some modifications needed with the design and some other modifications..
This one i directly input the sound from controller to my MIC and recorded it.. no coupling used.. I am still looking for a speaker which can play the sound with good volume level (suggestions needed). also i need suggestion to make a good audio circuit

I am actually thinking to make a talking clock.. so in my sample program.. i counted from 1 to 59 and its working pretty well.. the code is about 24KB (including all sound samples)
here is a demo of The Talking 8051.

http://www.8051projects.net/sound/count.mp3

Please compromise with the voice quality after all.. its an 8-bit controller
 tienduhieu like this.
Tags Roman Black Btc Algorithmsound on 8051playing sound with 8051
Fri Sep 07 2007, 02:37 PM
#2
Nice work Ajay

Are u going to put it to project section??
i realy want to learn about it :-)
 tienduhieu like this.
Fri Sep 07 2007, 06:24 PM
#3
sure i will post it just wait a while..
 abbas1707tienduhieu like this.
Fri Sep 07 2007, 06:49 PM
#4
hi interesting project
1. you can use 2" 0.5Watt speaker
2.for more audio you can use LM386 as an amplifier also i heard the sound i think a LPF is needed :-)





PCB - for amplifier

please use 0.1 uf capacitor as coupling capacitor to input


[ Edited Fri Sep 07 2007, 09:03 PM ]
 ajay_bhargavtienduhieu like this.
Tue Apr 01 2008, 02:05 AM
#5
Hai Rickey,

Its been 6 months since you posted this idea, any new developments in this regard,and when can we seen the project/algorithm

bye

arun
Tue Apr 01 2008, 02:53 AM
#6
Hey Ajay,
I think this has been done as a project in my college as "uC based watch for the visually handicapped".
As far as i understood it, 2 cards had been used with stored sound bytes and these were picked up by the uC and played from those pre specified locations.
The 2 cards they used were 100% bought (could make out when i saw it) but itseems they had done the rest of the interfacing and coding.
I could try looking into it if u need some more specifics! (For that il have to hunt in the my dusty dingy college library)
Tue Apr 01 2008, 07:17 AM
#7
In that case things can be made simple by using voice recorder chips like APR6016, APR9600 etc, and interfacing with a uC
:bye
Tue Apr 01 2008, 08:50 AM
#8
i donno where can i find these ICs.. coz where i stay you hardly find something over there.. even to get a controller you need to travel for about 2-3 hours..

even though this method is not so good but i had to use it..
there is still more space for advancements, i am not getting enough time. busy in some other projects..
Tue Apr 01 2008, 12:24 PM
#9
Tue Apr 01 2008, 01:26 PM
#10
here's my code to generate sound on a 8051;

$MOD51


OUT EQU P3.0

DSEG
ORG 0020H

COUNT: DS 1


CSEG


ORG 0000H ; ON RESET

JMP MAIN

ORG 000BH ;Timer Interrupt0

JMP PLAY



MAIN: MOV SP,#40H
MOV COUNT,#00H
MOV DPTR,#VOICE
MOVC A,@A+DPTR
MOV TMOD,#02D
MOV TH0,#0E0H
MOV TL0,#00H
SETB EA
SETB ET0
SETB TR0

LOOP: SJMP $


;***********************************************************************************
; ISR FOR TIMER0
;***********************************************************************************

PLAY:
INC COUNT
MOV R3,COUNT
CJNE R3,#09D,ACTION
MOV COUNT,#00H
INC DPTR
LINE1: CLR A
MOVC A,@A+DPTR
CJNE A,#99H,ACTION
MOV DPTR,#VOICE
SJMP LINE1

ACTION: RLC A
MOV OUT,C
RETI

;***********************************************************************************


ORG 0250H

VOICE: DB 00000000b ; 00
DB 00001110b ; 0e
DB 01111011b ; 7b
DB 01001100b ; 4c
DB 10101101b ; ad
DB 01001101b ; 4d
DB 01110101b ; 75
DB 00000101b ; 05
DB 01011101b ; 5d
DB 10101010b ; aa
DB 01010101b ; 55
DB 10101101b ; ad
DB 01001010b ; 4a
DB 10100100b ; a4
DB 10110001b ; b1
DB 01000101b ; 45
DB 01111001b ; 79
DB 11000111b ; c7
DB 00111101b ; 3d
DB 01000011b ; 43
DB 01010101b ; 55
DB 11000111b ; c7
DB 00011100b ; 1c
DB 01110001b ; 71
DB 10001110b ; 8e
DB 00110000b ; 30
DB 10100111b ; a7
DB 00111001b ; 39
DB 11001111b ; cf
DB 00011010b ; 1a
DB 11111000b ; f8
DB 11000010b ; c2
DB 99H
END

i don't know what the problem is, the result is some hissing noise i get from speaker.
iam using Xtal 12Mhz, interrupt is generated every 32uSecs i,e 15625Hz.

the data table is very large i've inserted only a block here, i am using 99H as EOC checking. can some one point out the bug ( i am doubting the Timer0 ISR)

arun

Get Social

Information

Powered by e107 Forum System

Conversation

Thu Nov 21 2019, 12:30 PM
raj2555
how to interface 8051 microcontroller with NRF24L01+ module
ExperimenterUK
Sat Oct 12 2019, 10:23 PM
Log in.. then post your code in the 8051 forum
Sat Oct 12 2019, 10:18 AM
Bhadra Sajikumar
i am doing a countdown timer with 8051 for my project, unfortunately our professor had to take a leave of absence before he could teach us most of it.. can someone explain the .asm code of it for me?
Mon Sep 23 2019, 07:37 AM
Nathaniel
I am doing a project for my schools wireless security system with cameras,sensors and spot lights using 8051 micro controller, could you help me out with the design and its source code.
Wed Sep 18 2019, 08:48 PM
Caryn Kover
Thank you for your time,
ExperimenterUK
Mon Aug 05 2019, 07:09 PM
@Ismail ..post in forum, give details
Mon Aug 05 2019, 04:33 PM
Ismail balghmi
Hello. Please I won't download
ExperimenterUK
Wed Jul 24 2019, 12:47 AM
@BUSTER123 Please post in the forum
Tue Jul 23 2019, 06:13 PM
BUSTER123
hello! newbie here. i am kind of a guy who hates using ready - made existing libraries, so this helped a lot as i was trying to control and write to a character lcd display. however, i can't figure out how to set the cursor position. for example, i want to set it to the 5th column in the first row, so position 5. so according to the table, i am sending 10000101 on the 8 data lines of the lcd (register select pulled low). the cursor does not move there however. and i cant move the cursor left or right too. is it something wrong that i am doing? thank you.
ExperimenterUK
Thu Jul 11 2019, 07:55 PM
@ramos https://www.theengineeringprojects.com/2017/09/l298-motor-driver-library-proteus.html

Downloads

Comments

ananyagupta
Tue Dec 03 2019, 07:53 AM
wells
Mon Nov 25 2019, 08:25 PM
auwal
Tue Nov 19 2019, 03:13 PM
ANKITPATEL
Mon Nov 18 2019, 11:00 AM
Casmir
Wed Nov 13 2019, 06:25 AM
DeepakBGattani
Mon Nov 11 2019, 01:31 PM
Jeanbusatta
Sun Nov 10 2019, 04:42 AM
mdayaz
Sat Nov 09 2019, 03:41 PM

Online

Guests: 33, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38107
Newest member: ananyagupta
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Nov 29 2019, 04:24 AM
" Is it possible to interface a fingerprint scanne...
ilylily07 Avatar
Posted By ilylily07
Thu Nov 28 2019, 03:50 PM
You will not find any code for an 8051 as no one w...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Nov 26 2019, 05:44 PM
You will not find any code for an 8051 as no one w...
ilylily07 Avatar
Posted By ilylily07
Tue Nov 26 2019, 04:13 AM
I tracked down a OV7670 data sheet.The OV7670 puts...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Nov 26 2019, 12:08 AM
I tracked down a OV7670 data sheet.The OV7670 puts...
ilylily07 Avatar
Posted By ilylily07
Mon Nov 25 2019, 04:38 PM
The 8051 has too little memory to do anything us...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Nov 19 2019, 10:44 PM
The 8051 has too little memory to do anything us...
ilylily07 Avatar
Posted By ilylily07
Mon Nov 18 2019, 09:54 AM
0v7670 camera interfacing with stc 8051.using asse...
Jeanbusatta Avatar
Posted By Jeanbusatta
Sun Nov 10 2019, 04:43 AM
ty, really needed it
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Oct 22 2019, 05:18 AM