Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - siklosi

1
Project development, ideas, and suggestions / Re: Controllable Aquarium Moonlight Strip
I made also moonlight while ago using attiny13 and bascom. Pinb.4 is photoresistor and capacitor like in picture

(you can use variable capacitor to set light level trigger)
pinb.0 and pinb.1 is pwm for white and blue leds and on pinb.2 is relay for turning on/off Fluorescent lamp.
Program works by turning of fluo lamp 30 seconds after light level in room turns below some level and starts easily fading blue and white led's to random level and then again turning on fluo lamp and turning off led's when light level goes above set light level
Here is hex
http://http://siklosi.users.sbb.rs/MOONLIGHT13.HEX

and here is code:
Code: [Select]
' During programming change lfuse from 6A (default for attiny13) to 7A to disable
' internal clock divide by 8 and avoid flicker of led's
$regfile = "attiny13.dat"
$crystal = 9600000
$hwstack = 32                                              'hw, sw stack and framesize had to be modified because rnd uses a lot
$swstack = 16                                              'of memory that attiny13 doesn't have
$framesize = 8
Config Watchdog = 256
Start Watchdog
Dim Pwmb As Byte
Dim Pwmw As Byte
Dim Fotor As Word
Dim T As Byte
Pwmb = 0
Pwmw = 0
T = 0
Tccr0a = &B10100001
Tccr0b = &B00000011
Config Pinb.0 = Output
Config Pinb.1 = Output
Config Portb.2 = Output
Config Pinb.4 = Input
Rele Alias Portb.2
Declare Sub Deadloop
Pwmw = Rnd(255)
 Call Deadloop()

 Do
  Set Portb.2
    If Pwmb > Pwm0a Then

    Pwm0a = Pwm0a + 1

  Else

    Pwm0a = Pwm0a - 1


  End If
  If Pwmw > Pwm0b Then

  Pwm0b = Pwm0b + 1


  Else
    Pwm0b = Pwm0b - 1
    End If

  Reset Watchdog
  If Pwmb = Pwm0a Then
  Pwmb = Rnd(255)
  Fotor = Getrc(pinb , 4)

                                  'check if light is again high
  If Fotor > 50 Then
  T = 0
  Pwm0a = 0
  Pwm0b = 0
  Call Deadloop()
  End If

  End If
  If Pwmw = Pwm0b Then Pwmw = Rnd(255)
  Waitms 50
Loop

Sub Deadloop()

 Do                                                        'do while light is high and 30sec after
  Reset Portb.2

  Reset Watchdog
  Fotor = Getrc(pinb , 4)


    If Fotor < 50 Then
      Reset Watchdog
      T = T + 1
      Waitms 180
    Else
      T = 0
    End If
    Loop Until T = 60

End Sub
3
Project development, ideas, and suggestions / IP 2 Serial - IDEA
I work a lot with equipment that has serial console port and in lot of situations I need to access that equipment remotely. Now I use colleagues equipped with notebooks so last night I was looking on Internet for some ip2com solution but  those devices are expensive and they can't be programed on site. Idea is to have board like this.

[attachment=0]

Device would act as serial to telnet adapter. And you could set ip address and com port parameters by pressing two buttons while device is powering (there could be third reset button) and using one button to increase/change value and other button to advance to next digit/parameter so you would have
DHCP:  A(utomataic)/S(tatic)
IP: xxx.xxx.xxx.xxx
Broadcast: xxx.xxx.xxx.xxx
GW: xxx.xxx.xxx.xxx.xxx
Port: xxxxx
Baud: xxxxxx
Parity: N/O/E/S/M
DataBits: 5/6/7/8


Can anyone project price for this board? Any ideas suggestions...
4
Bus Blaster JTAG debugger / Re: Bus Blaster v2
Quote
@siklosi - we're working on it :) PiratePICprog is intended to do it for PICs on Bus Pirate and FT2232, and AVRs are easy to program.

I was thinking about simple board with 40pin ZIF socket and on the other side 2x5 connector for bp... no electronics just jumpers to select type of avr inserted that will lead right signals to pins of inserted avr
5
Bus Blaster JTAG debugger / Re: Bus Blaster v2
I had to program a 50 attiny13's recently and my father brought me universal programmer from his workplace because it's easier than inserting every chip into dil8 and buspirate (I don't have any zif socket)... anyway I liked very much how it works and wanted to make suggestion for universal programmer project... but bus blaster v2 with zif socket daughter board is what it's all about :) . I opened programmer ant took pictures of it maybe you get some design idea...

http://www.transpapers.com/galep/DSC_4055_resize.JPG
http://www.transpapers.com/galep/DSC_4056_resize.JPG
http://www.transpapers.com/galep/DSC_4057_resize.JPG
http://www.transpapers.com/galep/DSC_4058_resize.JPG
http://www.transpapers.com/galep/DSC_4059_resize.JPG
http://www.transpapers.com/galep/DSC_4060_resize.JPG
http://www.transpapers.com/galep/DSC_4061_resize.JPG
http://www.transpapers.com/galep/DSC_4062_resize.JPG
http://www.transpapers.com/galep/DSC_4063_resize.JPG
http://www.transpapers.com/galep/DSC_4064_resize.JPG
http://www.transpapers.com/galep/DSC_4065_resize.JPG
http://www.transpapers.com/galep/DSC_4066_resize.JPG


I know it's offtopic but I liked zif so much and was thinking how nice it would be to have buspirate pic/avr zif board... I know avr is problematic and would need lot of jumpers just an idea...
7
Client software / Re: Jawi's Logic Sniffer client software - support and bug reports
There is something strange with open file dialog, at least under windows... When I open file and exit from client next time when I start client and open file dialog opens it points to directory that was last used, but when I try opening again file without exiting client then it points to default My Documents... So looks like when dialog opens for first time it loads last used directory, but second opening of open file dialog reverts to my documents.
8
USB Infrared Toy / irtoy2ols
I bought RC helicopter yesterday and it's IR one so first thing I did is to see what IR Toy has to say about it :) First thing i noticed is that when you for example push throttle it I guess sends command and then for next couple seconds continues to emit something like data stream. I recorded couple seconds with irtoy.exe and replayed successfully. Then I wanted to see in OLS how the stream looks... And then I saw that there is limit to 1k for irtoy :(
Because Im not programmer but occasionally write some  vb code and lately use autoit mostly for simple things I made in autoit simple program to convert irtoy.exe hex data from .bin file to ols file format... quick sample that i tried works ok ... anyway... here is source and compiled exe ... you just select bin file and ols file is created next to it... you can use and modify code as you wish

http://siklosi.users.sbb.rs/irtoy2ols.au3
http://siklosi.users.sbb.rs/irtoy2ols.exe

Ill go now back to where I started... analyzing RC heli's IR stream :)
10
USB Infrared Toy / Re: EventGhost plugin v00.08.03
I received today IR Toy from seeed and swapped resistor immediately and also tried adding another IR led from some old remote... So now angle and distance are OK... I don't know about T1 is it too much but for now it's working

11
Bus Pirate Support / miniscope v3
I saw miniscope v3 on the net and contacted Tomasz Ostrowski asking about Bus Pirate support... Since he does not have Bus Pirate I gave him access to my computer with Bus Pirate attached to it... He made dll for BusPirate... and it's available for download alongside of miniscope at:

http://tomeko.net/miniscope_v3/index.php&nbsp;

For now it only has only  manual trigger. Features that can be added are: rising/falling edge trigger, "continuos trigger" (continuous streaming), variable sampling rate (Bus Pirate has single sampling frequency but library could simulate lower sampling frequencies by data decimation)
13
USB Infrared Toy / Re: USB IR Toy
maybe off topic but I would buy used remote from ebay and soldered external big buttons to actual remote buttons....


EDIT... I guess I was slow with solution
15
Open Bench Logic Sniffer / Re: OBLS - Laser cut case
Friend of mine has laser cutter so I sent him your files, but forgot to tell him that case needs to be transparent and he made glossy black. Because LED's were not visible I drilled holes and filled them with clear epoxy... Then I did the same with bus pirate case I also had to paint inside of bus pirate case with marker into black to stop some of the light going through the white plastic...



btw I'm totally hooked up to dangerous prototypes and seeed studio... I'm just missing IR toy in my arsenal :)


( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01752458656session_write_close ( )...(null):0
20.01782590232ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01782591008Database_MySQL->query( ).../DatabaseHandler.php:119
40.06112729720Database_MySQL->error( ).../Db-mysql.class.php:273