need a collaborator to write vb interface for an avr project

Go To Last Post
20 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I want to build a little box with an avr and a couple of spi volume control dacs and control it over a serial port. I'll jack the dacs into the insert jacks on my pa board and sit back at the end of the serial cable (or bluetooth or whatever) to control it. So I can do the avr bit, but I'd like someone to show me how to do a slider and a vu meter in vb that will send and receive chars on com1. One channel is ok... the final project would have 8 ch per box, and you buy 2 or 3 boxes to control a 16 or 24 ch mixer. vb or vc is ok. Heck anything is ok, tk, x. Sorry if I'm too offtopic, but I've been looking on sourceforge and places for audio type user interface examples and they're pretty scarce.

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I may be interested BOB. I have built a digitally controlled pot (dual channel) for the volume control on my stereo using an AVR. However, it was IR (SIRCS) controlled from my remote and didn't have a GUI. But I do have VB6 and some experience creating user interfaces.

Send me an E-mail on your proposal.

Thanks,
Fiz

heltonga@aol.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

HI; I was also looking for info on doing level control. But for mine I need to control the attenuation in a Ti DF1706 digital filter (for audio) using the software control mode of the chip. It is a 3 wire control, one is a clock, one is a latch pulse and the 3rd is the 16bit data word. After reset, it needs 2 16 bit words to setup the initial functions, and then a 16 bit word for up/down level control, of which only the 0 to 7 bits are for level (00h to FFh). My problem is I'm a software idiot, hardware no problem.
Can anyone gives me any pointers or examples on which avr to use and some software examples.

Thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

golftech wrote:
HI; I was also looking for info on doing level control. But for mine I need to control the attenuation in a Ti DF1706 digital filter (for audio) using the software control mode of the chip. It is a 3 wire control, one is a clock, one is a latch pulse and the 3rd is the 16bit data word. After reset, it needs 2 16 bit words to setup the initial functions, and then a 16 bit word for up/down level control, of which only the 0 to 7 bits are for level (00h to FFh). My problem is I'm a software idiot, hardware no problem.
Can anyone gives me any pointers or examples on which avr to use and some software examples.

Thanks

I think any micro with spi port could do this... just stuuff 2 bytes in the spi... it clocks out 8 clks and 8 data bits for each byte... some assembler guy could stuff this into the smallest avr and 'bit bang' the clk and data on 2 pins, but I'd do it in c, which is overkill, but easier... it also means I's have to use a mega16.... the smallest c program has a bunch of subroutines in the run time library that get linked in with it...

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Bob; Thanks for the info, now I just need someone to lead me into the needed software/programming.
Thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

golftech wrote:
now I just need someone to lead me into the needed software/programming.

This is about a one page program. Whats the part number of the part? TIDF1706? I'll write a little c program that will run on my mega128, read the temp, and report on the serial using my iccavr compiler. You cvt it to whatever processor and compiler you like.

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Bob; Thanks for the offer. THis isn't a temp sensor, its a digital filter for digital audio. The software is for controlling the attenuation level and setup of the chip functions. As far as a temp sensor goes, I'd like to build a temp LCD readout/controller/timer for my steam room someday, if you have anything on something like that I'd be interested. If you need a page or two on the digital filter I can paste it. Its a Texas instrument (Burr Brown)part # DF1706.

Thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

golftech wrote:

its a digital filter for digital audio. The software is for controlling the attenuation level and setup of the chip functions.

OK, here's my first whack at it. I took a prog I had, added a couple functions to init the df1706 and compiled it with iccavr. The call to initdevices is the init file generated by the appbuilder in the ide...

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Bob,
finally are you interested in having me doing the pc project we talked about?I didn't get any answer so I am writting in the Forum.
Regards,Thomas

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Bob; Thanks for the program, but it appears that this is meant to be used with a computer rs232 port. I need something that can actuate the up/down level with momentary contacts. Excuse me if i'm out in left field on this assumption.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

golftech wrote:

I need something that can actuate the up/down level with momentary contacts.

Just // out the part that reads the char from the serial port, read an input port instead. You still inc and dec the levelleft and levrlright variables and send them out the spi port

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Bob; How would you read 2 input ports, one for L and One for R

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

golftech wrote:
Hi Bob; How would you read 2 input ports, one for L and One for R

I'd just use 4 buttons maybe.... left up, left down, right up right down, jog the left and right level variable up and down on ea button push. The you can get fancy and time the duration of the closure and make it count faster every second its held in or something (dont those danish B&O stereos work like that?)

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi bob ,
I work alot with VB6 GUIs and avr. you need to be more specific in your request... i could help but we need to agree on a custom protocol to use.something that both VB and AVR can use to "talk"!
Waiting for a reply
Alex

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Bob; No I think just two buttons(for now) up/down. To me balance is not an issue anymore. Making the ramp time change with time the button is held would be nice though. How can this program be converted to a hex file or a pfg file and can it be used with a AT90S8515 4PC, I have a few of these in my junkbox.
Thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I looked in my iccavr compiler options and sure enough, 90s8515 is one of the types of cpu it will compile for.... I've only done mega128 and mega16 so far... just dl the iccavr compiler, make a project with the c file, run the app builder in the ide to generate an initdevices file, hit the build button, and the compiler thinks up a file ready to burn. Really pretty easy (since you have such a lucid example to start from...)

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Bob; That sounds great. I went to Atmels site but couldn't find the download for iccavr, where is it located on thier site.

Thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There are several compaies that sell c compilers for avrs... try imagecraft.com for iccavr....

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Bob; Thanks. I found the site for iccavr compiler and they want $199 us for it. Doesn't make much sense for me to spent 199 for something I'll use once for a small project like this.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Did you see the 'use free for 45 days' deal thay have? Every compiler outfit lets you try it first

Imagecraft compiler user