MUFF WIGGLER Forum Index
 FAQ & Terms of UseFAQ & Terms Of Use   Wiggler RadioMW Radio   Muff Wiggler TwitterTwitter   Support the site @ PatreonPatreon 
 SearchSearch   RegisterSign up   Log inLog in 
WIGGLING 'LITE' IN GUEST MODE

Uploading sketches
MUFF WIGGLER Forum Index -> SNAZZY FX  
Author Uploading sketches
makaton
Hi, i seem ot have issue uploading sketches to my ardcore, if i use my mac laptop, it doesnt work, if i use my imac it works, maybe something to do with usb power?

Anyone have simliar issues?
AsceticUnderground
whats the exact error does it give you? works fine for me on a 2010 mac laptop as well as the newest mac mini.
makaton
i will try and upload a sketch using laptop and post the output error. I am using same sketch on both computers but does not work on my laptop, its mac 2010 aswell.
makaton
this the error:

Binary sketch size: 1,586 bytes (of a 32,256 byte maximum)
avrdude: stk500_recv(): programmer is not responding


same sketch on imac uploads fine.
makaton
btw your phase pattern sketch is great. Is it possible to clock the speed using an external clock source?
AsceticUnderground
That looks like it cant 'see' the ardcore. In the arduino software do you have the right board (arduino uno) and serial port selected in the tools menu?

Glad you like that sketch, it was just a bit of fun really so i didnt add external clock, it wouldnt be very hard for you to add it though wink
makaton
I have Uno set as board, the /dev/tty.bluetooth-pda-sync is that correct?

btw re the clock

would adding these lines initiate the clock input?

const int clkIn = 2;

volatile int clkState = LOW;
int clockTick[2] = {1, 1};

void setup() {
Serial.begin(9600);

// set up the digital (clock) input
pinMode(clkIn, INPUT);


void loop()
{
int i;

Serial.print(analogRead(0));
Serial.print('\t');
Serial.print(analogRead(1));
Serial.print('\t');
Serial.print(analogRead(2));
Serial.print('\t');
Serial.println(analogRead(3));

// deal with possible reset
for (i=0; i<2; i++) {
if (analogRead(3) > 511) {
clockTick[i] = (analogRead(i) >> 6) + 1;
}
}

// deal with incoming clock ticks
if (clkState == HIGH) {
clkState = LOW; // reset for the next clock

for (int i=0; i<2; i++) {
clockTick[i] --;
if (clockTick[i] < 1) {
digState[i] = HIGH;
prevMilli[i] = millis();
digitalWrite(digPin[i], HIGH);

clockTick[i] = (analogRead(i) >> 6) + 1 + (analogRead(2) >> 6);
}
}
}

// deal with trigger turnoff
for (int i=0; i<2; i++) {
if ((digState[i] == HIGH) && ((millis() - prevMilli[i]) > trigTime)) {
digState[i] = LOW;
digitalWrite(digPin[i], LOW);
}
}

}

i have just looked at code for another sketch, using a clock input. ;-)

I am not a coder!
AsceticUnderground
"/dev/tty.bluetooth-pda-sync" is incorrect. It should be "dev/tty/usbserial/xxxx" (xxxx is some number), that'll be the issue. Change it to that port and it should upload

Adding a clock is a bit more complicated than that, as you need to override the internal timer, if you dont write code i guess its not that easy to add a clock in razz
makaton
I dont see the option for usbserial. also if i do ls /dev/tty.* in terminal i only see bluetooth.

I am on OSX 10.8.5, my imac is still on 10.6, so maybe issue with 10.8 +? i will have a look on google.
AsceticUnderground
yeah its definitely not seeing the arduino port on that computer then. Im on Mavericks and it works ok. You might want to try installing the FTDI drivers http://www.ftdichip.com/Drivers/VCP.htm
makaton
Thank You, its working now. i have downloaded drivers and installed. (sure i did this before!)
AsceticUnderground
awesome grin glad to be of help
MUFF WIGGLER Forum Index -> SNAZZY FX  
Page 1 of 1
Powered by phpBB © phpBB Group