#avr Logs

Apr 22 2018

#avr Calendar

01:51 AM eadthem: anyone have any sugestions on how best to push a wave file or several wave files to a AVR or Arduino for playback
01:55 AM eadthem: content is 16khz 8 bit unsigned audio
01:55 AM eadthem: My inital thought was make an array containing the data. im open to better options
01:55 AM eadthem: micro sd for storage is out, vibrations will be rather intense.
01:55 AM eadthem: but i can fit it all in about 100 to 200kb of flash
02:21 AM nuxil: eadthem, http://avrpcm.blogspot.no/2010/11/playing-8-bit-pcm-using-any-avr.html
02:21 AM Casper: just store the audio in flash, and read from the address as you need the data to the DAC ?
02:22 AM eadthem: that was the idea
02:22 AM eadthem: k so hes just using a .c file to store it in an array
02:22 AM eadthem: wasnt sure if there was a simpler way
02:23 AM nuxil: yes. progmem
02:23 AM eadthem: not what i ment
02:24 AM Casper: https://balau82.wordpress.com/2012/02/19/linking-a-binary-blob-with-gcc/ maybe a starting point?
02:24 AM eadthem: thats what i ment
02:24 AM nuxil: oh
02:25 AM eadthem: im getting a strange feeling liek ive done this before along time ago
02:25 AM nuxil: hehe
02:25 AM eadthem: but that would of been AVR ASM im sure
02:26 AM nuxil: :D
02:26 AM eadthem: well thank that gives me 2 options for loading this data
02:29 AM nuxil: was googeling avr and audioh also found this.. but its using a sdcard http://elm-chan.org/works/sd8p/report.html
02:30 AM eadthem: ya lots of sd card based ones
02:30 AM eadthem: problem is im not trusting the sd card wont rattle loose
02:30 AM eadthem: and i dont need that much space anyhow
02:34 AM nuxil: well. its only 200kb store it in flash with progmem.
02:34 AM nuxil: unless your chip is someting like atiny13 :p
02:34 AM eadthem: well not sure about progmem
02:34 AM eadthem: but yes i was planning to store it in flash
02:34 AM nuxil: that what progmem does
02:34 AM eadthem: o im not recording audio
02:35 AM nuxil: i think you misunderstand progmem :)
02:35 AM eadthem: ya never herd of it before
02:36 AM eadthem: sounds like a c or c++ function
02:36 AM eadthem: ive used iirc LPM SPM before
02:36 AM nuxil: https://www.nongnu.org/avr-libc/user-manual/pgmspace.html
02:36 AM nuxil: read that :)
02:37 AM nuxil: eadthem, are you doing asm ?
02:37 AM eadthem: i have alot of xp doing asm
02:37 AM nuxil: nice :)
02:37 AM eadthem: i was planning on c++ (c with objects)
02:37 AM nuxil: ewww :p
02:38 AM nuxil: stick to C :p
02:38 AM * nuxil hides
02:38 AM eadthem: naw c++ only adds bloat if you involve librarys
02:39 AM eadthem: anyhow i would just use avrstudio but on linux that dosent work
02:39 AM nuxil: install avr-gcc
02:39 AM nuxil: avrdude
02:39 AM eadthem: full ide?
02:39 AM eadthem: i didnt think there was one
02:40 AM eadthem: i know avrdude is command line
02:40 AM nuxil: no. youre favoritte Notepad and makefiles :D
02:40 AM eadthem: ya this is why they invented ide
02:40 AM nuxil: i dont like the ide's
02:42 AM nuxil: i think most of the people in here uses avrdude with some sort of makefiles. some of them even use ruby scripts.
02:43 AM eadthem: well i broke faraday and now must reboot
02:43 AM eadthem: so think ile just turn in for night as well
02:44 AM nuxil: oki.
02:44 AM nuxil: sleep well
02:44 AM nuxil: its morning here
02:44 AM nuxil: im drinking my morning coffee :)
02:48 AM eadthem: its 2:46am
02:48 AM eadthem: night
03:16 AM polprog: morning
03:18 AM nuxil: morning
03:18 AM nuxil: sup
03:20 AM polprog: got a kewl idea for a music video
03:21 AM polprog: hachers style
03:21 AM polprog: hackers*
03:21 AM nuxil: meh.. do one like this :p https://www.youtube.com/watch?v=KPoY9-08KqQ
03:21 AM nuxil: :D
03:24 AM nuxil: im sure that woke you up if you felt sleepy :p
03:24 AM polprog: haha found my old cd
03:24 AM polprog: https://puu.sh/A8bDy/24eaa54d40.jpg
03:25 AM polprog: ill watch that later, breakfast
03:25 AM antto: ugh, scooter
03:25 AM polprog: not *that* bad
03:26 AM polprog: some of the tracks there ar pretty okay
03:26 AM polprog: the trance'y ones
06:53 AM polprog: look at this
06:53 AM polprog: https://puu.sh/A8g5k/205c93b695.jpg
06:55 AM nuxil: does it have workbench installed? :p
02:12 PM MrFahrenheit: man, don't everyone talk at once
02:30 PM Thrashbarg: hmm
02:35 PM * polprog just had a nice night bike ride
05:33 PM polprog: niters
05:35 PM eadthem: anyone know of any prebuilt RADAR (Distance only) modules that can be use with an AVR or Arduino
05:42 PM polprog: HC-SR04 ultrasonic distance sensor is pretty easy to use
05:42 PM polprog: cheap, can be gotten everywhere
05:43 PM eadthem: i had ruled out ultrasonics due to distance
05:43 PM polprog: what distance range do you need
05:44 PM eadthem: i was hoping for up to 1000 feet
05:45 PM eadthem: full disclouser im working on a avionics module for a powerd paraglider
05:46 PM eadthem: im planning to have a barometric altemeter but was also intersted in a AGL altemeter
05:58 PM MrFahrenheit: I documented a header file and it gre from 44 to 260 lines, and I'm only half done
05:58 PM MrFahrenheit: *grew
11:21 PM day__ is now known as day