How to make that "noise" sshhh sound lorries and emergengy vehicles make without a mp3 player.
I want to make others aware of me on a bicycle other than a bell becuse they would use a bell if better. noise is omni-directional
It's turning a port on off through an amp. I looked for the sound to sample. It's late. Any thoughts other than mp3 player?
more a squelch sound https://www.youtube.com/watch?v=fa28lIGuxq8
If I can find the sound then use audacity and how much mem needed and how. Not random port on off which works sort of. Daft idea. Ride a bike.
Last edit: stan cartwright 2018-02-27
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
;;PseudorandomdigitalwhitenoisegeneratorforPICseries.;;PIC12C508versionwrittenApril7th,1997byScottRider.;Questions/commenttochip@aeug.org;;ThisprogramusesMicrochipassemblermnemonicsandtheMicrochip;MPASMassembler(http://www.microchip.com/).Defaultconfigoptions;aresetinthe__FUSESlinebelow:MCLREoff,CPoff,WDToff,OSC=INTRC.;;______________;|\/|;(+5V)Vdd--+18+--Vss(GND);||470;X1/CLKI/GP5--+27+--GP0(audioout)--/\/\/--(spkr);(notused)|||10K1uF;X2/CLKO/GP4--+36+--GP1--/\/\/--|(--(line);(notused)||(notused);GP3/!MCLR--+45+--GP2;(notused)|(PIC12C508)|(notused);+----------------+;;Thisprogramgeneratesacontinuousstreamofwhitenoisethrougha;speakerconnected(viaa470-ohmseriesresistor)topinGP0ofa;PIC12C508.Itdemonstratesaneasymethodforgeneratingaseemingly;randomstreamofbits.Hardwarefolkswillprobablyrecognizeitasthe;tappedshiftregistertechniquecoveredintheCMOSCookbookbyDon;Lancaster.;;AdaptedfromtheoriginalPIC16C54(Parallax)versionbyScottEdwards.;listp=12c508radixdecinclude"p12c508.inc"__FUSES_MCLRE_OFF&_CP_OFF&_WDT_OFF&0xFFE;Internalosc.cblock0x07;Variablesi;Loopcounterx;Scratchy;Scratchsr0;32bitsofshiftregistersr1sr2sr3;/endcorg0x0;;PIC12C508coldstartsat0XFFF(whereitloadsafactory-programmed;internalosc.calibratevalue).Itthenrollsoverto0x0.;movwfOSCCALgotostart;;Subroutinesin12-bitPICseriesmustgoonbottompageofROM.;waitmovlw35;Changethisnumberfordifferentsoundifusingmovwfi;'wait'rotuine(normallydisabled).loopdecfszi,Fgotoloopretlw0;;Maincodeareatraditionallystartsat0x100ona12-bitPIC.;org0x100startmovlwb'11000000';TurnoffT0CKIoption;/movlwb'00000000';PresetoutputstocomeuplowmovwfGPIO;/movlwb'00000000';SettheI/Odirection(allbitsoutput)trisGPIOclrfsr0;Mightaswellstartwithaseedof1.6E7.clrfsr1clrfsr2clrfsr3incfsr3,F;/;;Themainloop'taps'is24CPUcycles.Atthe4MHzinternalclock;rate,thenoiseoutputisoperatingatamax.rateofabout21KHz.;tapsbtfsssr3,6;Getbits18and31forthefeedbackXOR.bcfx,0btfscsr3,6bsfx,0;Bit31->xbtfsssr2,1bcfy,0btfscsr2,1bsfy,0;Bit18->ymovfy,W;!(xXORy)->carryxorwfx,Fbtfscx,0bcfSTATUS,Cbtfssx,0bsfSTATUS,C;/rlfsr0,F;32-bitshiftrlfsr1,Frlfsr2,Frlfsr3,F;/;;Putapseudorandombitouttothespeaker.Inthisexample,GPIObit0;(pin7onthePIC12C508)isused.Besuretousea470ohmresistorfor;speakeror10Korbetterforinputtoanop-amp/divider/whatever.;;Also,touseallsixGPbitsfornoise,justcommentthefollowing4;linesanduncommentthe5thand6thlines.;btfsssr3,7;line1bcfGPIO,0;line2btfscsr3,7;line3bsfGPIO,0;line4;movfsr3,W;line5;movwfGPIO;line6;;Uncommentthefollowing'call wait'toexperimentwithchangingthe;'texture'ofthenoise(see'wait'routine,above).;;callwait;Optionaldelayroutinetoaltersoundgototaps;Adinfinitum...;;That's all, folks!;end
Not my code but Scott Rider is well respected in the PIC Community and I trust his work.
Cheers
Chris
Edit: Updated SF is doing strange things in the text field now.
This took several edits to fix all the new idiosyncrasies so watch out if you post formatted text.
Last edit: Chris Roper 2018-03-12
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How to make that "noise" sshhh sound lorries and emergengy vehicles make without a mp3 player.
I want to make others aware of me on a bicycle other than a bell becuse they would use a bell if better. noise is omni-directional
It's turning a port on off through an amp. I looked for the sound to sample. It's late. Any thoughts other than mp3 player?
more a squelch sound https://www.youtube.com/watch?v=fa28lIGuxq8
If I can find the sound then use audacity and how much mem needed and how. Not random port on off which works sort of. Daft idea. Ride a bike.
Last edit: stan cartwright 2018-02-27
This should point you in the right direction:
Not my code but Scott Rider is well respected in the PIC Community and I trust his work.
Cheers
Chris
Edit: Updated SF is doing strange things in the text field now.
This took several edits to fix all the new idiosyncrasies so watch out if you post formatted text.
Last edit: Chris Roper 2018-03-12
Cool. I was thinking of if random>127 then port on else port off.
Seems they make them. https://www.google.co.uk/search?q=white+noise+bicycle+horn&tbm=isch&source=iu&ictx=1&fir=xYNWqFZXeUW9OM%253A%252CV3TKp95lUX8TyM%252C_&usg=__IpCi1s_N_3Dtkw_G7g1Z7ucBT58%3D&sa=X&ved=0ahUKEwjTnaWjlsbZAhWR_aQKHZ2rAyEQ9QEIxAEwDQ#imgrc=xYNWqFZXeUW9OM:
Can't you just get a turbospoke? http://www.turbospoke.com/ :)
Or a piece of plastic taped to the frame and interfering with the spokes.
Worked for me 50 years ago, everyone could hear me coming :)