Recent Posts

Pages: [1] 2 3 ... 10
1
3.5mm might get confused with audio port and anyone trying that is going to hear awful squeal from RX/TX

I also thought of S-Video port.  It used 4 pins, low power, and is rarely used these day.
2
Software / Re: Consigli per realizzazione...
Last post by astrobeed - Today at 01:46 pm
darò un'occhiata senz'altro... è free?
Personalmente, ti parlo da progettista professionista che con i software EDA ci combatte tutti i giorni, ti sconsiglio Kicad, vai sicuro con Eagle, anche per via dell'enorme disponibilità di librerie rispetto a Kicad e per il fatto che in ambiente Arduino trovi la stragrande maggioranza del materiale, inteso come schemi e pcb, per Eagle e molto poco per Kicad.
3
General Electronics / Re: building custom ISP shield...
Last post by 6v6gt - Today at 01:46 pm
The reason for the second set of pins is described in the comment:

Code: [Select]

// HOODLOADER2 means running sketches on the atmega16u2
// serial converter chips on Uno or Mega boards.
// We must use pins that are broken out:
#else

#define RESET      4
#define LED_HB    7
#define LED_ERR    6
#define LED_PMODE 5

Since the code could also run on an  atmega16u2 with less usable pins.

Incidentally, I  have also recently joined the ranks of those who have created a custom programmer. You might find something of use to you here: http://forum.arduino.cc/index.php?topic=508603.0
4
Hardware / Re: Condensatore ceramico? Qua...
Last post by astrobeed - Today at 01:42 pm
Le dimensioni fisiche del condensatore sono direttamente legate alle tensione massima che può sopportare, più sono "grossi" è maggiore è la tensione massima possibile, non intesa come valore assoluto ma come valore possibile perché comunque la tensione è un parametro produttivo e puoi trovare condensatori 0805 che arrivano a 50V e altri a 25V, o meno, perché così sono stati progettati, dipende anche dalla capacità.
Quale case scegliere dipende esclusivamente da due fattori, il primo la disponibilità come valore e tensione, il secondo dalle esigenze di miniaturizzazione.
Se devi montare a mano il circuito è meglio rimanere su 0805 o 1206, sicuramente non scendere mai sotto il 0603, se il circuito viene montato da un service, con gli appositi macchinari, allora scegli pure la dimensione minore possibile compatibilmente con i parametri richiesti.
5
Programming Questions / Re: typedef struct pointer
Last post by stowite - Today at 01:41 pm
Latest gcc on Linux accepts it as does the latest avr-gcc command line but not though the IDE.

The error messages shown in the IDE
Code: [Select]

FRED-2:11: error: conflicting declaration 'typedef struct Program_Data_Struct* Program_Data_Struct'
 typedef struct Program_Data_Struct *Program_Data_Struct;
                                     ^
FRED-2:9: error: 'struct Program_Data_Struct' has a previous declaration as 'struct Program_Data_Struct'
 struct Program_Data_Struct{};
...

conflicting declaration 'typedef struct Program_Data_Struct* Program_Data_Struct'


makes sense since there does seem to be an ambiguity if one tries to use 'Program_Data_Struct',
6
Hello i can not get this to work plz help and give me feedback many thanks in advance josef.



/*
 * motion sensor module"
 * Connections:
 * RCWL-0516      LaunchPad
 * ---------      ---------
 * 3V3            Not connected
 * GND            GND
 * OUT            pin 10
 * VIN            5V
 * CDS            Not connected
 */
#include <Adafruit_NeoPixel.h>
#include <avr/power.h>
int  detectPin = 10;
bool detect    = true;
int led = 5;
#define PIN 5  // NEOPIXEL INPUT
#define PIXEL 3  //NUMBER OF PIXELS
#define BRIGHTNESS 200 // SET BRIGHTNESS
Adafruit_NeoPixel strip = Adafruit_NeoPixel(PIXEL, PIN, NEO_GRB + NEO_KHZ800);

void setup() {
  pinMode (detectPin, INPUT);
  strip.begin();
  strip.show(); // Initialize all pixels to 'off'

}

void loop() {
  detect = digitalRead(detectPin);

 if(detect == true) {
   digitalWrite(led, HIGH);
 strip.begin();
 (strip.Color(255, 0, 0), 50); // Red ON
  strip.show();
  }
  else {
  (strip.Color(0, 0, 0), 0); // Off
  strip.show();
  }

  delay(4000);
}
7
General Electronics / Re: Voltage is dropping, why?
Last post by Danois90 - Today at 01:32 pm
I've figured out that the switching buck converter would have been what I needed - thank's for the tip on that! But I do not have such converter and I will not get my Christmas light done in time if I should order one for the project. Now I have taken a power adapter from my RbPi, it is rated at 2A @ 5.1V, and I have measured it to 5.3V. This is in the green area but I have put in the before mentioned regulator which gives me a nice 4.25V which is will ensure my LED's not burning out too fast - this works very well! The regulator only has to dissipate a maximum of 1.6 watt and it does only get slightly warm and nowhere near as hot as before. Nice! :)

@TomGeorge: The LED's are SK6812 SMD5050 rated at 3.5-5.5V (aka. NeoPixels). They did not burn out at all, they are pretty rugged as long as they do not get too much heat during soldering! I have placed a 1000uF capacitor on the regulator's output. The LED's are soldered into 2 strips (2x10), each LED has a 50Ohm resistor on VDD and the data signals each have a 330Ohm resistor attached as recommended. They are controlled using the AdaFruit NeoPixel library and other than that there's not much other to it :)

Thanks for you help, guys! I learned a usefull lesson about linear voltage regulators and how (not) to use them :)
8
Deutsch / Re: modulare, drahtlose kommun...
Last post by Gundelputz - Today at 01:32 pm
So jetzt gehts in die heisse Phase.
Habe jetzt zum Testen den Conrad NanoESP und einen "selbst gebauten" NanoESP (ESP8266 + Levelschifter +  Nano + erterne Spannungsquelle) aufgebaut. Als erstes Programm habe ich den Tag 4 des Conrad Weinachtscalender 2016 hergenommen.
Code: [Select]
/*
UDP-Send.
No change necessary.
*/

#define DEBUG true

#include <SoftwareSerial.h>

SoftwareSerial esp8266(11, 12); // RX, TX

void setup()
{
  Serial.begin(19200);
  esp8266.begin(19200);

  esp8266.setTimeout(5000);
  if (sendCom("AT+RST", "ready"))
  {
    debug("RESET OK");
  }

  if (configAP())
  {
    debug("AP ready");
  }
  if (configUDP())
  {
    debug("UDP ready");
  }
}

void loop()
{
  if (esp8266.available())
    Serial.write(esp8266.read());
  if (Serial.available())
    esp8266.write(Serial.read());
}
/* von Tommy
void senden_empfangen()
{
 
char incomingPacket[10];

// Senden:
   Udp.beginPacket(remoteIP, port);
   Udp.write(was, wieviel);
   Udp.endPacket();

// Empfangen
  packetSize = Udp.parsePacket();
  // Da ist was da
  if (packetSize) {
    Serial.print("Empfangen "); Serial.print(packetSize);
    Serial.print(" von IP "); Serial.print(Udp.remoteIP());
    Serial.print(" Port "); Serial.println(Udp.remotePort());
    len = Udp.read(incomingPacket, sizeof(incommingPacket));
    // auswerten
  }
}
*/

//-----------------------------------------Config ESP8266------------------------------------

boolean configAP()
{
  boolean success = true;

  success &= (sendCom("AT+CWMODE=2", "OK"));
  success &= (sendCom("AT+CWSAP=\"NanoESP01\",\"\",5,0", "OK"));

  return success;
}

boolean configUDP()
{
  boolean success = true;

  success &= (sendCom("AT+CIPMODE=0", "OK"));
  success &= (sendCom("AT+CIPMUX=0", "OK"));
  success &= sendCom("AT+CIPSTART=\"UDP\",\"192.168.4.2\",90", "OK"); //UDP-Server
  return success;
}

//-----------------------------------------------Controll ESP-----------------------------------------------------

boolean sendCom(String command, char respond[])
{
  esp8266.println(command);
  if (esp8266.findUntil(respond, "ERROR"))
  {
    return true;
  }
  else
  {
    debug("ESP SEND ERROR: " + command);
    return false;
  }
}

String sendCom(String command)
{
  esp8266.println(command);
  return esp8266.readString();
}

//-------------------------------------------------Debug Functions------------------------------------------------------
void serialDebug() {
  while (true)
  {
    if (esp8266.available())
      Serial.write(esp8266.read());
    if (Serial.available())
      esp8266.write(Serial.read());
  }
}

void debug(String Msg)
{
  if (DEBUG)
  {
    Serial.println(Msg);
  }
}

läuft auf beiden.
habe in Zeile 71
success &= (sendCom("AT+CWSAP=\"NanoESP01\",\"\",5,0", "OK"));
den Namen von NanoESP auf NanoESP01 bzw. NanoESP02 angepasst.
in Zeile 82
success &= sendCom("AT+CIPSTART=\"UDP\",\"192.168.4.2\",90", "OK"); //UDP-Server
habe ich die IP-Adresse beim 01 auf 192.168.4.2 und beim 02 auf 192.168.4.3 gesetzt
bei beiden bekomme ich bei der Anfrage der IPAdresse folgende antwort
+CIFSR:APIP,"192.168.4.1"
wo liegt hier mein denkfehler
Ich glaube das ich den einen zum Server und den anderen zum Client machen muss bin mir aber nicht sicher wie.
Das Beispiel von Tommy ist mir ein wenig zu umfangreich als das ich es 100% verstehen würde.
9
Hardware / Re: Condensatore ceramico? Qua...
Last post by uwefed - Today at 01:30 pm
Quei numeri che citi sono la dimensione del condensatore. Puoi prendere quello che vuoi; Hanno tutti la stessa capacitá e la tensione massima che sopportano é sempre maggiore di 5V.

Ciao Uwe
10
Maybe it would be helpful for you to describe the "many ways" you have tried.

I've done it using Temboo.
Pages: [1] 2 3 ... 10