The Inaugural LG's Arduino Thread #2

aye-aye-Chris

Famous Word Swap Guru
Staff member
Maybe this is the right place for this... inaugural... #2..... bwa ha ha ha haaaaaa

Anyhoo, back on topic.... {snigger}

[Start wash cycle]
Still going with this programming, connecting, testing, smiling smugly with immense satisfaction at my own brilliance at the achievement, disassembling and starting next project.
[Rinse & repeat]

Through the studies one thing that keeps popping up and it's very handy is SPI, Serial Peripheral Interface. -- > http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus

If you know nothing about electronics and/or programming, continue with the blurred look that you are wearing....

Serial Peripheral Interface Bus
From Wikipedia, the free encyclopedia

SPI bus: single master and single slave
The Serial Peripheral Interface (SPI) bus is a synchronous serial communication interface specification used for short distance communication, primarily in embedded systems. The interface was developed by Motorola and has become a de facto standard. Typical applications include sensors, Secure Digital cards, and liquid crystal displays.

SPI devices communicate in full duplex mode using a master-slave architecture with a single master. The master device originates the frame for reading and writing. Multiple slave devices are supported through selection with individual slave select (SS) lines.

Sometimes SPI is called a four-wire serial bus, contrasting with three-, two-, and one-wire serial buses. The SPI may be accurately described as a synchronous serial interface,[1] but it is different from the Synchronous Serial Interface (SSI) protocol, which is also a four-wire synchronous serial communication protocol, but employs differential signaling and provides only a single simplex communication channel.

[Much more to read on that page...]
 

foxidrive

Retired Admin
I have a serial output port. It's been pretty reliable over the years, but sometimes I get the runs. Messy.

Good work with the Arduino Chris, you're a techie at heart and that ain't a bad thing!
 

aye-aye-Chris

Famous Word Swap Guru
Staff member
It's easy guys, just like the RS232 Standard, SPI followed with the same idea:

Standards
The SPI bus is a de facto standard. However, the lack of a formal standard is reflected in a wide variety of protocol options. Different word sizes are common. Every device defines its own protocol, including whether or not it supports commands at all. Some devices are transmit-only; others are receive-only. Chip selects are sometimes active-high rather than active-low. Some protocols send the least significant bit first.

Some devices even have minor variances from the CPOL/CPHA modes described above. Sending data from slave to master may use the opposite clock edge as master to slave. Devices often require extra clock idle time before the first clock or after the last one, or between a command and its response. Some devices have two clocks, one to read data, and another to transmit it into the device. Many of the read clocks run from the chip select line.

Some devices require an additional flow control signal from slave to master, indicating when data are ready. This leads to a 5-wire protocol instead of the usual 4. Such a ready or enable signal is often active-low, and needs to be enabled at key points such as after commands or between words. Without such a signal, data transfer rates may need to be slowed down significantly, or protocols may need to have dummy bytes inserted, to accommodate the worst case for the slave response time. Examples include initiating an ADC conversion, addressing the right page of flash memory, and processing enough of a command that device firmware can load the first word of the response. (Many SPI masters do not support that signal directly, and instead rely on fixed delays.)

Many SPI chips only support messages that are multiples of 8 bits. Such chips can not interoperate with the JTAG or SGPIO protocols, or any other protocol that requires messages that are not multiples of 8 bits.

There are also hardware-level differences. Some chips combine MOSI and MISO into a single data line (SI/SO); this is sometimes called 'three-wire' signaling (in contrast to normal 'four-wire' SPI). Another variation of SPI removes the chip select line, managing protocol state machine entry/exit using other methods. Anyone needing an external connector for SPI defines their own: UEXT, JTAG connector, Secure Digital card socket, etc. Signal levels depend entirely on the chips involved.
 

foxidrive

Retired Admin
Different word sizes are common. Every device defines its own protocol, including whether or not it supports commands at all. Some devices are transmit-only; others are receive-only. Chip selects are sometimes active-high rather than active-low. Some protocols send the least significant bit first.
What a mess!!
 

foxidrive

Retired Admin
I didn't know that St Peter was a technology user in his daily employment.

Arduino's have spread far and wide!!
 

aye-aye-Chris

Famous Word Swap Guru
Staff member
I have a serial output port. It's been pretty reliable over the years, but sometimes I get the runs. Messy.

Good work with the Arduino Chris, you're a techie at heart and that ain't a bad thing!
That's one place you wouldn't want a parallel port.

Anyhoo, on with the show....

[Start wash cycle]
Still going with this programming, connecting, testing, smiling smugly with immense satisfaction at my own brilliance at the achievement, disassembling and starting next project.
[Rinse & repeat]
I think I have a head start here guys, you never know which way this is gunna go.



http://www.pcduino.com said:
pcDuino is a mini PC or single board computer platform that runs PC like OS such as Ubuntu and Android ICS. It outputs screen to HDMI. Moreover, it has hardware headers interface compatible with Arduino (TM). pcDuino can be used to teach Python, C and more interesting stuff.

http://www.jaycar.com.au/Kits,-Scie...-Programming/PcDuino-V3-0-with-Wi-Fi/p/XC4350

XC4350ImageMain-515Wx515H
PcDuino V3.0 with Wi-Fi - $119.00
A high performance mini PC platform that runs on Ubuntu or Android ICS. Features onboard HDMI, USB, SATA, LVDS and Wi-Fi.

The latest version of the pcDuino single-board-computer. This is the full size pcDuino board and includes the LVDS connector to connect an LCD touch screen(XC-4356). Wi-Fi capability is built in to this version and digital audio is supported via I2C. Ideally suited for creating a wireless media centre.

Specifications:
• CPU: All Winner A20 SoC
• GPU: Mali 400 Dual Core
• RAM: 1GB
• Storage: 4GB on board flash
• Storage Expansion: micorSD slot, SATA port.
• Ethernet: 10/100/1000
• Wi-Fi: 802.11b/g
• GPIO pins: 14
• ADC pins: 6
• PWM pins: 2
• Communication: SPI, I2C, UART
• USB: 1 x Host + 1 x OTG
• Video Output: HDMI, LVDS connector for LCD display (XC-4356)
• Analog Audio: 3.5mm stereo audio socket
• Digital Audio: Yes, via I2C
• Default OS: Ubuntu Linux
• Power Supplly: 5VDC 2000mA (via Micro USB)

Get with it guys or get used to the taste of my flying dust trail. :satisfied
 

aye-aye-Chris

Famous Word Swap Guru
Staff member
Reposted, see why below :satisfied

Thank you but I found that some time back and have quite a lot of download from APC.

I have tried a few of the projects but the enigma machine is one I should get back to. Where I worked we had a genuine enigma machine from the Germans in our foyer. It was the Defence Signals Directorate. :satisfied

V-II-IV CDP MAH FU CK ME
YMEKI OEFWM QSYVZ RWQWZ OJOVX TODYA KIAHD. :satisfied

The clue is in the pic of my arduino enigma setup below :satisfied

upload_2015-5-11_17-23-43.png
 

aye-aye-Chris

Famous Word Swap Guru
Staff member
I understand the last three syllables on the top line. :angel
As with most crypto, some things must be randomly generated. And as a rule, random is far too important to be left to chance.

They are, of course, pure random, divided into 3 binary pairs, put into base 26 and then converted to alpha.

*Wipes bullsh!t dripping from chin...
 
Back
Top