I'm trying to create a PCB that has an integrated ATMEGA328 (running at 3.3V, clocked at 8mhz) and a cheap Bluetooth module, which I picked up from DealExtreme here:
http://dx.com/p/wireless-bluetooth-rs232-ttl-transceiver-module-80711?item=2I tested the module with a standard Arduino Uno running at 5V and was able to connect to it via Bluetooth and use it as a simple echo. However, now that I've connected it to my circuit board, I cannot get it to even show up when I poll for new devices in Win7 (or on my tablet).
I've attached the schematic for the circuit I've built around the Bluetooth module. I have the RX going to pin 12, and the TX going to pin 8 of the ATMEGA (Arduino pin mappings). I wasn't sure about the 10k resistor going to the Reset pin, so I've tried powering up the circuit with and without that resistor in place, but with the same result.
I've also attached an image of the PCB layout if that helps.
Any ideas what I've got wrong with my setup?
Here is the sketch that I currently have uploaded to the ATMEGA328:
#include <SoftwareSerial.h>
int BT_RX = 12;
int BT_TX = 8;
SoftwareSerial bluetooth(BT_RX, BT_TX);
void setup() {
Serial.begin(57600);
bluetooth.begin(9600);
}
void loop() {
if(Serial.available())
bluetooth.write(Serial.read());
if(bluetooth.available())
Serial.write(bluetooth.read());
}