Author Topic: I want to build a DAC for Raspberry Pi 2  (Read 76928 times)

0 Members and 1 Guest are viewing this topic.

Offline emanuel

  • Jr. Member
  • **
  • Posts: 71
  • Milliwatts: 0
    • View Profile
Re: I want to build a DAC for Raspberry Pi 2
« Reply #75 on: September 12, 2015, 12:59:34 pm »
test result: I only need to cut 4/17 pin to stop ilda mode.
I've got a 4 Channel relai for Raspberry for that.
Now I need to implement the gpio switches into py webinterface.


Also I've testet HE Laserscan 6 (win software, free for one projector)
works very well using the Audio DAC. I could run a show using the built in soundcard for mp3, and the DAC.
A complet Lasershow!

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2130
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: I want to build a DAC for Raspberry Pi 2
« Reply #76 on: September 12, 2015, 11:00:11 pm »
You should see if there is a way to pipe your stereo audio tracks to channels 7 & 8 on the LaserBoy DAC!


James.
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline emanuel

  • Jr. Member
  • **
  • Posts: 71
  • Milliwatts: 0
    • View Profile
Re: I want to build a DAC for Raspberry Pi 2
« Reply #77 on: September 13, 2015, 07:54:00 am »

Hm, bad idea in my case    ;D , my webinterface for audacious (playing in loop mode) is using amixer "Speakers down/up" command for a smooth change of art with out the sharp white beam during change to new art.  So music will pause, too.


But I thing there is no problem using default audio on pc/raspberry for sound.


I've got the DMX controll program qlc+ (for raspberry or pc(win/linux) and there I've got a timeline, where I can setup external scripts (for example: wget to webif of audacious), or the common dmx commands. If everything is wired up, I can test. But still a lot of work...

Offline emanuel

  • Jr. Member
  • **
  • Posts: 71
  • Milliwatts: 0
    • View Profile
Re: I want to build a DAC for Raspberry Pi 2
« Reply #78 on: September 18, 2015, 07:50:26 pm »
a laserboy dxf folder import and 3d hidden lines test:


Acad 3d solid->DXB plotter->DXB import & dxf save (acad) ->laserboy->my script->sd card  :o


https://goo.gl/photos/jMc9fprHh7SWMGxo9

Offline emanuel

  • Jr. Member
  • **
  • Posts: 71
  • Milliwatts: 0
    • View Profile
Re: I want to build a DAC for Raspberry Pi 2
« Reply #79 on: October 12, 2015, 03:39:06 pm »
also works on dreambox sat receiver (mipsel ):
https://goo.gl/photos/hqz4jAjEHRPTg9jm7

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2130
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: I want to build a DAC for Raspberry Pi 2
« Reply #80 on: October 15, 2015, 02:13:00 pm »
That's the stuff!

This is why Generic C++ is such a good idea.

It works on almost everything!

Congratulations. You did a great job getting all that together.

James.
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline emanuel

  • Jr. Member
  • **
  • Posts: 71
  • Milliwatts: 0
    • View Profile
Re: I want to build a DAC for Raspberry Pi 2
« Reply #81 on: October 19, 2015, 02:41:57 pm »
Hm, C++ would be nice at that point :-D.


As you know I've started a python script to get some experience about the ilda formats.
Then I've found that build in gui "tkinter" included in common python install on pc/raspberry.
So I've build a gui interface to use all the format converters, fixers, displaying ...
Further I've played around with the tkinter's canvas, And now I've got a "AutoCad styled"
ild CAD functionality. But there is one main problem in the gui: I can not zoom in/out. I've tried a lot around.
The main problem is the interface between canvas coords and main window coords. Trying to scale destroys my "magnetic grips" on
start-, end-, points, rubberband previews and the mouse do not match anymore the rigth positions.
The only solution would be to implement some own modules in C++. It would be so awsome, see the pix:
« Last Edit: October 19, 2015, 02:47:19 pm by emanuel »

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2130
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: I want to build a DAC for Raspberry Pi 2
« Reply #82 on: October 20, 2015, 01:39:16 am »
Do you think maybe it has something to do with data types?

The ILDA file format uses signed short integers to store coordinates.

Maybe doing math on signed short integers causes bit rollovers.

I had to write all kinds of math to make LaserBoy work.

I have a class that is a 3D signed short int coordinate and I also have a class that is a 3D float, so I can do math that might result in numbers too big or too small for signed short.

Every time you tap a key, a whole new bitmap is made in memory of the entire display area and copied to the pointer of the visible screen.

All of the math of 3D coordinates and transforms and graphics elements, including the font are in my code.

I don't use any of the graphics stuff in libSDL.

I even wrote my own point plotting and line drawing functions.

I just create a bitmap and copy it to the screen.

That's what makes it generic and that's why it works on almost everything!

James.
« Last Edit: October 20, 2015, 05:18:49 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline emanuel

  • Jr. Member
  • **
  • Posts: 71
  • Milliwatts: 0
    • View Profile
Re: I want to build a DAC for Raspberry Pi 2
« Reply #83 on: October 22, 2015, 04:26:05 pm »
In my case it is because the tkinter Canvas was not made for this. (scalling), but for scrolling.
I need minimum a second db to convert all the coordinates. For mouse events I have to calculate a lot for example "the magnetic grips" on lines. That all need to convert further on zooming. But I'll find a way in python, I've found a cad project based on tkinter python.

Offline emanuel

  • Jr. Member
  • **
  • Posts: 71
  • Milliwatts: 0
    • View Profile
Re: I want to build a DAC for Raspberry Pi 2
« Reply #84 on: October 25, 2015, 06:45:49 pm »
pixel rendering is cool running very well using tkinter. Fine for animate ilds or previews like this ~140 lines code only:
« Last Edit: October 25, 2015, 06:49:22 pm by emanuel »

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.7 © 2008-2024, SimplePortal