Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: Inverted Square Wave Help on: March 23, 2014, 10:39:57 pm
The 74CH04 rout sound the way for me at this point probably.  I tried it with p-channel and N- Channel Fet configuration seem to work for lower frequencies, but as the frequency increases delay eats up the inverted square.

You guys rock!
2  Using Arduino / Programming Questions / Re: Inverted Square Wave Help on: March 23, 2014, 06:54:30 pm
Thanks for the response, let me see if i can figure it out!
3  Using Arduino / Programming Questions / Re: Inverted Square Wave Help on: March 23, 2014, 06:10:24 pm
I forgot where I got it from but i tested, it generates a single square wave up to 2Mhz! I believe only for pin 9 and 10. Not sure though.

Question here is though, i am trying to invert the original and have both of the square wave on pin 9 and the inverted on 10.
4  Using Arduino / Programming Questions / Inverted Square Wave Help on: March 23, 2014, 04:28:15 pm
Please HELP!

Does any one know how to invert a PWM signal comming out of pin 9 on to pin 10?

Below is what I have so far messing around in the .ino and the attached libraries!
Code:
/*

 Mimics the fade example but with an extra parameter for frequency. It should dim but with a flicker
 because the frequency has been set low enough for the human eye to detect. This flicker is easiest to see when
 the LED is moving with respect to the eye and when it is between about 20% - 60% brighness. The library
 allows for a frequency range from 1Hz - 2MHz on 16 bit timers and 31Hz - 2 MHz on 8 bit timers. When
 SetPinFrequency()/SetPinFrequencySafe() is called, a bool is returned which can be tested to verify the
 frequency was actually changed.
 
 This example runs on mega and uno.
 */

#include <PWM.h>

//use pin 11 on the Mega instead, otherwise there is a frequency cap at 31 Hz
int led = 9;   // pin 9 out put
int led2 = 10; //pin 10 output
int32_t frequency = 10000; //frequency (in Hz)

void setup()
{
  //initialize all timers except for 0, to save time keeping functions
  InitTimersSafe();

  //sets the frequency for the specified pin
  bool success = SetPinFrequencySafe(led, frequency);
  
  //if the pin frequency was set successfully, turn pin 13 on
  if(success) {
    pinMode(13, OUTPUT);
    digitalWrite(13, HIGH);    
  }
}

void loop()
{
  //use this functions instead of analogWrite on 'initialized' pins
  pwmWrite(led, 127);
  pwmWriteInv(led2, 127);
 
}


5  Using Arduino / LEDs and Multiplexing / Question on code coversion: lcd to 16 seg display on: April 19, 2013, 08:06:36 pm
Hi,

I dont konw if i am posting this in the right place, but i was trying to get a hint on how to covert an alarm clock code written for an LCD in to a 16 Segment display via a 595 shift register.

any info is apriciated.


Here is where the original source is: http://hacks.ayars.org/search/label/arduino%20clock%20DS1307%20rotary%20switch
 

Thanks!
6  Using Arduino / LEDs and Multiplexing / LCD to 16 Segment display on: April 19, 2013, 03:07:41 pm
Hi,

I dont konw if i am posting this in the right place, but i was trying to get a hint on how to covert an alarm clock code written for an LCD in to a 16 Segment display via a 595 shift register.

Here is where the original source is: http://hacks.ayars.org/search/label/arduino%20clock%20DS1307%20rotary%20switch

Thanks!
Pages: [1]