A digitally controlled hairdryer has removable attachments that are used to style hair. The hairdryer is powered with AC and DC power, with the DC power supply being separate from the main body. The removable attachments are powered and controlled by the hairdryer. The oscillating attachment has a motor that moves an oscillating portion to direct airflow from the outlet of the hairdryer.