Friday, April 22, 2016
Saturday, March 26, 2016
Raspberry Pi - Never Too Late
Western Digital - 300+ GB drive for the Pi
Amazon - How to make an Echo out of your Pi
Wolfram - How to use Wolfram Language on your Pi
what can you add?
Amazon - How to make an Echo out of your Pi
Wolfram - How to use Wolfram Language on your Pi
what can you add?
Thursday, January 28, 2016
Recommended Power Supply for DragonBoard 410C
https://www.arrow.com/en/products/wm24p-12-a-ql/autec-power-systems#page-9
Inner : 1.75 mm
Outer : 4.75 mm
Shame on you Hari and Ganz - I've seen the DB and I don't think this one will fit!
Inner : 1.75 mm
Outer : 4.75 mm
Shame on you Hari and Ganz - I've seen the DB and I don't think this one will fit!
Thursday, January 21, 2016
Dragonboard DB410C Boot DIP Switches
S6 switches :
4 : HDMI select
3 : USB host
2 : SD boot (boot from SD card)
1 : USB boot
Picture : http://www.96boards.org/products/ce/dragonboard410c/started/
If you want to boot into the OS that shipped with the board, then config needs to be 0-0-0-0
If you want to boot into an OS you flashed onto a uSD, then use 0-1-1-0
External command prompt via micro-USB : 0-0-1-0
from : https://www.coursera.org/learn/internet-of-things-dragonboard/lecture/eVNL8/boot-configuration
4 : HDMI select
3 : USB host
2 : SD boot (boot from SD card)
1 : USB boot
Picture : http://www.96boards.org/products/ce/dragonboard410c/started/
If you want to boot into the OS that shipped with the board, then config needs to be 0-0-0-0
If you want to boot into an OS you flashed onto a uSD, then use 0-1-1-0
External command prompt via micro-USB : 0-0-1-0
from : https://www.coursera.org/learn/internet-of-things-dragonboard/lecture/eVNL8/boot-configuration
Thursday, March 5, 2015
Giving Cypress a Try - for Jül - PSoC to Arduino to Huhushop OLED... Let's See
If this works, then the next step would be to try and dump stuff to the OLED from the phone by getting the PSoC BLE to receive it.. let's do a CBM first..
Start with the UART TX example code, delete the LCD thing in the schematic, and the code..
Build succeeds..
Then, using RealTerm... no luck.. Bombs..
Then, I try stuff from here : https://eewiki.net/display/microcontroller/PSoC+UART+Example
And that bombs - can't even find device.h ... man.. talk about Arduino compatibility - they suck..
Anyhow, I then search for PSoC4 BLE serial port hello world and get to :
http://www.cypress.com/?rID=101641
And I decide to try the ADC mit pre-amp example - I do a create workspace using that example (find example project) and then strip out all the other stuff, so I'm left with just :
void main()
{
uint8 i = 0;
/* Start the Components */
UART_Start();
/* Enable global interrupts */
CyGlobalIntEnable;
for(;;)
{
UART_UartPutChar( i++);
delay( 1000u); /* bad.. see below */
}
}
Let's see... Note that, till now, I've no clue whether this UART will write the "Arduino compatible" pins.. And, as I learnt in the class, I try a right-click on the UART component hoping to get to API documentation - no luck..
Well, if they're shipping 2 billion of these a year, they're doing something right :)
Damn, there's no such function as delay. Why can't they make the thing smart enough to suggest that one might mean CyDelay - I mean, doesn't the perl compiler tell you where you might have made a mistake? Anyhow, fixes that, but still, not one peep on the RealTerm..
What's a mensch to do? I search for "pioneer cy8ckit-042-ble which pin of psoc is arduino tx rx?" .. in vain..
Changed (I think) to P1.5 for the TX and the Heap Size to 0x400 (instead of 0x100 default). And, WORKS!
Then, I see that that is the right port for Arduino already - you can see the silkscreen there.. Good. So, what happens if we connect to the Arduino pin 0 (RX)???
Works! Of course, I changed the code to
uint8 i = 65;
To get letters on the OLED. Great! Now I need to get meaningful data from the phone to the OLED.. Be nice if I could just use the Mbientlab - but that piece of crap can't be programmed over USB.
Start with the UART TX example code, delete the LCD thing in the schematic, and the code..
Build succeeds..
Then, using RealTerm... no luck.. Bombs..
Then, I try stuff from here : https://eewiki.net/display/microcontroller/PSoC+UART+Example
And that bombs - can't even find device.h ... man.. talk about Arduino compatibility - they suck..
Anyhow, I then search for PSoC4 BLE serial port hello world and get to :
http://www.cypress.com/?rID=101641
And I decide to try the ADC mit pre-amp example - I do a create workspace using that example (find example project) and then strip out all the other stuff, so I'm left with just :
void main()
{
uint8 i = 0;
/* Start the Components */
UART_Start();
/* Enable global interrupts */
CyGlobalIntEnable;
for(;;)
{
UART_UartPutChar( i++);
delay( 1000u); /* bad.. see below */
}
}
Let's see... Note that, till now, I've no clue whether this UART will write the "Arduino compatible" pins.. And, as I learnt in the class, I try a right-click on the UART component hoping to get to API documentation - no luck..
Well, if they're shipping 2 billion of these a year, they're doing something right :)
Damn, there's no such function as delay. Why can't they make the thing smart enough to suggest that one might mean CyDelay - I mean, doesn't the perl compiler tell you where you might have made a mistake? Anyhow, fixes that, but still, not one peep on the RealTerm..
What's a mensch to do? I search for "pioneer cy8ckit-042-ble which pin of psoc is arduino tx rx?" .. in vain..
Changed (I think) to P1.5 for the TX and the Heap Size to 0x400 (instead of 0x100 default). And, WORKS!
Then, I see that that is the right port for Arduino already - you can see the silkscreen there.. Good. So, what happens if we connect to the Arduino pin 0 (RX)???
Works! Of course, I changed the code to
uint8 i = 65;
To get letters on the OLED. Great! Now I need to get meaningful data from the phone to the OLED.. Be nice if I could just use the Mbientlab - but that piece of crap can't be programmed over USB.
Tuesday, February 24, 2015
You Thought Arduino Was Bad. Look at Digilent
Jeez, try finding a really good Hello World start page. Where did these guys ever get the gumption to dump so much stuff on their board.
They were smart to make everything look and feel like the Arduino, and then dumb enough to make it unusable. What the * are you supposed to do to get the programmer on the PC talking to the damn thing. Okay, Arduino needs some drivers (I think), but there's not a word about that here..
http://chipkit.net/arduino-blink-sketch-chipkit-dp32/
They were smart to make everything look and feel like the Arduino, and then dumb enough to make it unusable. What the * are you supposed to do to get the programmer on the PC talking to the damn thing. Okay, Arduino needs some drivers (I think), but there's not a word about that here..
http://chipkit.net/arduino-blink-sketch-chipkit-dp32/
En Route to Jül : Serial to OLED with Arduino
Okay, been months since I touched this stuff... and to show you how a devious mind works ..
To get the heltec.cn (huhushop) monochrome OLED working with Arduino, (Duemilanove), I had
SDA*SCL*GND*VCC = pins 5*4*GND*3V3
As mentioned here, change the 0x3D to 0x3C for the address in their code and you should see the nifty graphics. Man, thank God ISIS doesn't have access to such technology.
Then, what if you want to relay a character from the serial port to the OLED?
To get up there, first example I try is DigitalReadSerial... Hmm, if you leave Pin 2 floating, you get random stufff.. Anyways. That works..
Anyways, had to look online for some relaying code, but that's not hard - they really don't have a good thing for reading a string at a time and relaying that. At least, I don't think they do.. Shame..
Really! Try googling for "arduino string" and see what you get.
Things you find out the hard way - each time you launch the serial port monitor, you reset the Arduino.
Anyways, this is the best I could do for now. If you think of a better way, please... I know this is shabby..
Only setup and loop here, coz this is a blog.
https://learn.adafruit.com/monochrome-oled-breakouts/arduino-library-and-examples has the rest that you put before and after.. (nothing needed after, coz we're not using those bells and w functions)
void setup() {
Serial.begin(9600);
// by default, we'll generate the high voltage from the 3.3v line internally! (neat!)
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); // initialize with the I2C addr 0x3D (for the 128x64)
// init done
display.clearDisplay(); // prevents adafruit logo from being displayed, but compiler is not
// smart enough to know that that data being loaded into the buffer is not
// needed and some flash space can be saved. Shame on Arduino :)
display.display();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0,0);
display.println("World,");
display.display();
delay(1000);
}
void loop() {
char inChar;
// read the input
if( Serial.available()){
delay(100);
while( Serial.available()){
inChar = Serial.read();
Serial.print(inChar);
display.print(inChar);
}
Serial.println();
display.println();
display.display();
delay(500);
}
}
I say shame on them for not providing a print function that also scrolls - how simple a need that is! Here's a guy ver sieht aus als sie kennt sein stuff : http://blog.oscarliang.net/arduino-oled-display-library/
To get the heltec.cn (huhushop) monochrome OLED working with Arduino, (Duemilanove), I had
SDA*SCL*GND*VCC = pins 5*4*GND*3V3
As mentioned here, change the 0x3D to 0x3C for the address in their code and you should see the nifty graphics. Man, thank God ISIS doesn't have access to such technology.
Then, what if you want to relay a character from the serial port to the OLED?
To get up there, first example I try is DigitalReadSerial... Hmm, if you leave Pin 2 floating, you get random stufff.. Anyways. That works..
Anyways, had to look online for some relaying code, but that's not hard - they really don't have a good thing for reading a string at a time and relaying that. At least, I don't think they do.. Shame..
Really! Try googling for "arduino string" and see what you get.
Things you find out the hard way - each time you launch the serial port monitor, you reset the Arduino.
Anyways, this is the best I could do for now. If you think of a better way, please... I know this is shabby..
Only setup and loop here, coz this is a blog.
https://learn.adafruit.com/monochrome-oled-breakouts/arduino-library-and-examples has the rest that you put before and after.. (nothing needed after, coz we're not using those bells and w functions)
void setup() {
Serial.begin(9600);
// by default, we'll generate the high voltage from the 3.3v line internally! (neat!)
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); // initialize with the I2C addr 0x3D (for the 128x64)
// init done
display.clearDisplay(); // prevents adafruit logo from being displayed, but compiler is not
// smart enough to know that that data being loaded into the buffer is not
// needed and some flash space can be saved. Shame on Arduino :)
display.display();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0,0);
display.println("World,");
display.display();
delay(1000);
}
void loop() {
char inChar;
// read the input
if( Serial.available()){
delay(100);
while( Serial.available()){
inChar = Serial.read();
Serial.print(inChar);
display.print(inChar);
}
Serial.println();
display.println();
display.display();
delay(500);
}
}
I say shame on them for not providing a print function that also scrolls - how simple a need that is! Here's a guy ver sieht aus als sie kennt sein stuff : http://blog.oscarliang.net/arduino-oled-display-library/
Subscribe to:
Posts (Atom)
