全新论坛MCU智学网上线,欢迎访问新论坛!稀缺资源、技术干货、参考设计、原厂资料尽在MCU智学网
更新自动建库工具PCB Footprint Expert 2023.13 Pro / Library Expert 破解版

PC16F84A与低音discolight(迪斯科舞厅)最佳低音敲打电路

[复制链接]
938 0

本文包含原理图、PCB、源代码、封装库、中英文PDF等资源

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
1_090908162533_12011051819502117066.gif 下面是 [PC16F84A与低音discolight(迪斯科舞厅)最佳低音敲打电路]的电路图
    
   0SZM427-02011051819502117067.jpg
  PC16F84A与低音discolight(迪斯科舞厅)最佳低音敲打电路
   
   
  This is an early picture of my discolight effect. Because of the AGC circuit theres no need for potentionmeters for sensitivity adjust. I replaced them with trimmers. Now the microphone is on the control electronics because theres no need to place it outside the box and the possible noises from the surroundings are reduced.
  
  You have to choose the distance between Lens-Lamp-Parabola to get sharp beams. Its all about optics.That little ?wall?(hindrance) before the Lamp doesnt let the white light to pass through the Lens.
  
  I have that box from a friend who had there a bigger home-made parabola. So the box with mine could be smaller but i didnt want to resize it.Its OK.
   

Introduction


  Short description of the operation:
  
  External circuit converts bass beat of music into pulses.The motor is controlled by them.
  If theres bass beat recognised then the motor rotates one direction(in full stepping) for a predefined time then stops. If the second beat comes in then it rotates again for the same time and so on.There is a random number generator (from 1 to 4) written into the code which tells how many times have the motor to rotate one direction.After that the PIC changes rotation direction of the motor.If the tempo is too fast (<400msec) then the direction is changed immediately.
  When the motor stops after the predefined time period a counter is enabled.if beat doesnt come in for 15sec the motor starts to rotate slowly in half stepping.If a beat comes in the counter is disabled and the motor continues its normal rotation in full stepping.
  (Half stepping is smoother but unfortunately the torque is less)
  The PIC can control the motor after every beat or its possible to bypass some beats.It can be done by pushbuttons. Rotation speed and rotation lenght can be adjusted too.Settings are limited between values to prevent possible register overflow-underflow. These values are saved in EEPROM so after shut-down the settings dont lost.
  
  A beat consist of a series of vibrations(dont know the correct english word for that-sorry) so the PIC gets a few
  interrupts.To prevent multi-triggering theres a counter written into the code which disables reaction to beat for
  200msecs after the first interrupt. 180msec delay is enough if you are using amplifiers output (or line out) as music source. I had to increase it to 200msec because i use microphone and the rooms echo influences operation.
   

Programming the PIC - Adjustments


  When programming the PIC16F84A you need to fill the first three EEPROM locations with the setting values.
  I used these one: 01 14 E0
  I programmed the PIC with Ic-Prog using a simple JDM programmer.
   
  Download Source Code
  
  After you succesfully built the whole hardware you need to adjust the trimmers very precisely. If you dont experiment a few times with adjusting them then its possible that the PIC will not recognise every beat because of the small amplifycation level. Or,it will do several things at only one beat.So you have to find the best adjustment.
  The original circuit which converts bass beat into pulses is from Dan Frasers ?Audio trigger circuit for light chasers?
  (updated by Tomi Engdahl). I only replaced the line-out control with microphone and removed the 555 circuitry
  because of the software solution. The very-own in this project is the software for the PIC microcontroller.
   

Block diagram and software flowchart


   
   0SZM310-12011051819502117068.gif
   
   
   0SZK3I-22011051819502117069.gif
   

PCB and Schematics


  
   0SZMF3-32011051819502117070.jpg
   0SZMU8-42011051819502117071.jpg
  You will need Eagle from CADsoft to view the .sch and .brd files.
  Download Schematic and PCB files
   
   0SZMV8-52011051819502117072.jpg
   
   0SZKC2-62011051819502117073.jpg
   
   

Conclusion


   0SZM111-72011051819502117074.jpg
   0SZI460-82011051819502117075.jpg
   0SZLP8-92011051819502117076.jpg
   0SZK196-102011051819502117077.jpg
  This is my first PIC project.While I developed the code i learnt very much about coding a PIC. If you are interested in building it up please let me know!I would really like to know if my project is useful for other people too.
   (责任编辑:电路图)

举报

回复
*滑块验证:
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

打开支付宝扫一扫,最高立得1212元红包
搜索

图文热点

更多

社区学堂

更多

客服中心

QQ:187196467 服务时间:周一至周日 8:30-20:30

关注我们

关于我们
关于我们
友情链接
联系我们
帮助中心
网友中心
购买须知
支付方式
服务支持
资源下载
售后服务
定制流程
关注我们
官方微博
官方空间
官方微信
快速回复 返回顶部 返回列表